comparison src/audio/alsa/SDL_alsa_audio.h @ 1895:c121d94672cb

SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 10 Jul 2006 21:04:37 +0000
parents d910939febfa
children 5f6550e5184f 9dc81c6acaf5
comparison
equal deleted inserted replaced
1894:c69cee13dd76 1895:c121d94672cb
31 #include "../SDL_sysaudio.h" 31 #include "../SDL_sysaudio.h"
32 32
33 /* Hidden "this" pointer for the video functions */ 33 /* Hidden "this" pointer for the video functions */
34 #define _THIS SDL_AudioDevice *this 34 #define _THIS SDL_AudioDevice *this
35 35
36 struct SDL_PrivateAudioData { 36 struct SDL_PrivateAudioData
37 /* The audio device handle */ 37 {
38 snd_pcm_t *pcm_handle; 38 /* The audio device handle */
39 snd_pcm_t *pcm_handle;
39 40
40 /* The parent process id, to detect when application quits */ 41 /* The parent process id, to detect when application quits */
41 pid_t parent; 42 pid_t parent;
42 43
43 /* Raw mixing buffer */ 44 /* Raw mixing buffer */
44 Uint8 *mixbuf; 45 Uint8 *mixbuf;
45 int mixlen; 46 int mixlen;
46 }; 47 };
47 48
48 /* Old variable names */ 49 /* Old variable names */
49 #define pcm_handle (this->hidden->pcm_handle) 50 #define pcm_handle (this->hidden->pcm_handle)
50 #define parent (this->hidden->parent) 51 #define parent (this->hidden->parent)
51 #define mixbuf (this->hidden->mixbuf) 52 #define mixbuf (this->hidden->mixbuf)
52 #define mixlen (this->hidden->mixlen) 53 #define mixlen (this->hidden->mixlen)
53 54
54 #endif /* _ALSA_PCM_audio_h */ 55 #endif /* _ALSA_PCM_audio_h */
56 /* vi: set ts=4 sw=4 expandtab: */