Commit 83a5b57a authored by Ryan C. Gordon's avatar Ryan C. Gordon

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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404425
parent 91df94fa
This diff is collapsed.
...@@ -29,25 +29,20 @@ ...@@ -29,25 +29,20 @@
#include "../SDL_sysaudio.h" #include "../SDL_sysaudio.h"
/* Hidden "this" pointer for the audio functions */ /* Hidden "this" pointer for the audio functions */
#define _THIS SDL_AudioDevice *this #define _THIS SDL_AudioDevice *this
struct SDL_PrivateAudioData struct SDL_PrivateAudioData
{ {
/* The audio stream handle */ /* pulseaudio structures */
pa_simple *stream; pa_mainloop *mainloop;
pa_mainloop_api *mainloop_api;
/* The parent process id, to detect when application quits */ pa_context *context;
pid_t parent; pa_stream *stream;
/* Raw mixing buffer */ /* Raw mixing buffer */
Uint8 *mixbuf; Uint8 *mixbuf;
int mixlen; int mixlen;
/* Support for audio timing using a timer, in addition to select() */
float frame_ticks;
float next_frame;
}; };
#define FUDGE_TICKS 10 /* The scheduler overhead ticks per frame */
#endif /* _SDL_pulseaudio_h */ #endif /* _SDL_pulseaudio_h */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment