comparison src/audio/paudio/SDL_paudio.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
24 #ifndef _SDL_paudaudio_h 24 #ifndef _SDL_paudaudio_h
25 #define _SDL_paudaudio_h 25 #define _SDL_paudaudio_h
26 26
27 #include "../SDL_sysaudio.h" 27 #include "../SDL_sysaudio.h"
28 28
29 /* Hidden "this" pointer for the video functions */ 29 /* Hidden "this" pointer for the audio functions */
30 #define _THIS SDL_AudioDevice *this 30 #define _THIS SDL_AudioDevice *this
31 31
32 struct SDL_PrivateAudioData 32 struct SDL_PrivateAudioData
33 { 33 {
34 /* The file descriptor for the audio device */ 34 /* The file descriptor for the audio device */
35 int audio_fd; 35 int audio_fd;
36
37 /* The parent process id, to detect when application quits */
38 pid_t parent;
39 36
40 /* Raw mixing buffer */ 37 /* Raw mixing buffer */
41 Uint8 *mixbuf; 38 Uint8 *mixbuf;
42 int mixlen; 39 int mixlen;
43 40
45 float frame_ticks; 42 float frame_ticks;
46 float next_frame; 43 float next_frame;
47 }; 44 };
48 #define FUDGE_TICKS 10 /* The scheduler overhead ticks per frame */ 45 #define FUDGE_TICKS 10 /* The scheduler overhead ticks per frame */
49 46
50 /* Old variable names */
51 #define audio_fd (this->hidden->audio_fd)
52 #define parent (this->hidden->parent)
53 #define mixbuf (this->hidden->mixbuf)
54 #define mixlen (this->hidden->mixlen)
55 #define frame_ticks (this->hidden->frame_ticks)
56 #define next_frame (this->hidden->next_frame)
57
58 #endif /* _SDL_paudaudio_h */ 47 #endif /* _SDL_paudaudio_h */
59 /* vi: set ts=4 sw=4 expandtab: */ 48 /* vi: set ts=4 sw=4 expandtab: */