comparison src/audio/nas/SDL_nasaudio.h @ 2049:5f6550e5184f

Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 17 Oct 2006 09:15:21 +0000
parents c121d94672cb
children 99210400e8b9
comparison
equal deleted inserted replaced
2048:6067c7f9a672 2049:5f6550e5184f
35 #endif 35 #endif
36 #include <sys/time.h> 36 #include <sys/time.h>
37 37
38 #include "../SDL_sysaudio.h" 38 #include "../SDL_sysaudio.h"
39 39
40 /* Hidden "this" pointer for the video functions */ 40 /* Hidden "this" pointer for the audio functions */
41 #define _THIS SDL_AudioDevice *this 41 #define _THIS SDL_AudioDevice *this
42 42
43 struct SDL_PrivateAudioData 43 struct SDL_PrivateAudioData
44 { 44 {
45 AuServer *aud; 45 AuServer *aud;
46 AuFlowID flow; 46 AuFlowID flow;
47 AuDeviceID dev; 47 AuDeviceID dev;
48
49 /* The parent process id, to detect when application quits */
50 pid_t parent;
51 48
52 /* Raw mixing buffer */ 49 /* Raw mixing buffer */
53 Uint8 *mixbuf; 50 Uint8 *mixbuf;
54 int mixlen; 51 int mixlen;
55 52
58 int bps; 55 int bps;
59 struct timeval last_tv; 56 struct timeval last_tv;
60 int buf_free; 57 int buf_free;
61 }; 58 };
62 #endif /* _SDL_nasaudio_h */ 59 #endif /* _SDL_nasaudio_h */
60
63 /* vi: set ts=4 sw=4 expandtab: */ 61 /* vi: set ts=4 sw=4 expandtab: */