comparison src/audio/alsa/SDL_alsa_audio.h @ 4359:4b582c04ec1d SDL-1.2

Recoomendation from Lennart Poettering: I guess I don't have to mention that, but ALSA_WaitAudio() is pure evil, and just broken. getpid() returns pids, not tids. You get those via gettid(). But I'd recommend dropping that entirely. It's just broken.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 19 Oct 2009 02:36:02 +0000
parents 464126f4c7db
children
comparison
equal deleted inserted replaced
4358:df306a61a61d 4359:4b582c04ec1d
33 33
34 struct SDL_PrivateAudioData { 34 struct SDL_PrivateAudioData {
35 /* The audio device handle */ 35 /* The audio device handle */
36 snd_pcm_t *pcm_handle; 36 snd_pcm_t *pcm_handle;
37 37
38 /* The parent process id, to detect when application quits */
39 pid_t parent;
40
41 /* Raw mixing buffer */ 38 /* Raw mixing buffer */
42 Uint8 *mixbuf; 39 Uint8 *mixbuf;
43 int mixlen; 40 int mixlen;
44 }; 41 };
45 42
46 /* Old variable names */ 43 /* Old variable names */
47 #define pcm_handle (this->hidden->pcm_handle) 44 #define pcm_handle (this->hidden->pcm_handle)
48 #define parent (this->hidden->parent)
49 #define mixbuf (this->hidden->mixbuf) 45 #define mixbuf (this->hidden->mixbuf)
50 #define mixlen (this->hidden->mixlen) 46 #define mixlen (this->hidden->mixlen)
51 47
52 #endif /* _ALSA_PCM_audio_h */ 48 #endif /* _ALSA_PCM_audio_h */