comparison src/audio/pulseaudio/SDL_pulseaudio.h @ 3672:878d8adf2fde

Merged r4210:5510 from branches/SDL-1.2/src/audio/pulse: PulseAudio updates. This pulls all the PulseAudio reworking that was done for 1.2.14 into 1.3. Fixes Bugzilla #801.
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 17 Jan 2010 06:14:04 +0000
parents 99210400e8b9
children f7b03b6838cb
comparison
equal deleted inserted replaced
3671:0d6f520c0eb9 3672:878d8adf2fde
27 #include <pulse/simple.h> 27 #include <pulse/simple.h>
28 28
29 #include "../SDL_sysaudio.h" 29 #include "../SDL_sysaudio.h"
30 30
31 /* Hidden "this" pointer for the audio functions */ 31 /* Hidden "this" pointer for the audio functions */
32 #define _THIS SDL_AudioDevice *this 32 #define _THIS SDL_AudioDevice *this
33 33
34 struct SDL_PrivateAudioData 34 struct SDL_PrivateAudioData
35 { 35 {
36 /* The audio stream handle */ 36 /* pulseaudio structures */
37 pa_simple *stream; 37 pa_mainloop *mainloop;
38 38 pa_mainloop_api *mainloop_api;
39 /* The parent process id, to detect when application quits */ 39 pa_context *context;
40 pid_t parent; 40 pa_stream *stream;
41 41
42 /* Raw mixing buffer */ 42 /* Raw mixing buffer */
43 Uint8 *mixbuf; 43 Uint8 *mixbuf;
44 int mixlen; 44 int mixlen;
45
46 /* Support for audio timing using a timer, in addition to select() */
47 float frame_ticks;
48 float next_frame;
49 }; 45 };
50 #define FUDGE_TICKS 10 /* The scheduler overhead ticks per frame */
51 46
52 #endif /* _SDL_pulseaudio_h */ 47 #endif /* _SDL_pulseaudio_h */
53 48
54 /* vi: set ts=4 sw=4 expandtab: */ 49 /* vi: set ts=4 sw=4 expandtab: */