comparison src/audio/alsa/SDL_alsa_audio.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
28 #define ALSA_PCM_OLD_SW_PARAMS_API 28 #define ALSA_PCM_OLD_SW_PARAMS_API
29 #include <alsa/asoundlib.h> 29 #include <alsa/asoundlib.h>
30 30
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 audio functions */
34 #define _THIS SDL_AudioDevice *this 34 #define _THIS SDL_AudioDevice *this
35 35
36 struct SDL_PrivateAudioData 36 struct SDL_PrivateAudioData
37 { 37 {
38 /* The audio device handle */ 38 /* The audio device handle */
44 /* Raw mixing buffer */ 44 /* Raw mixing buffer */
45 Uint8 *mixbuf; 45 Uint8 *mixbuf;
46 int mixlen; 46 int mixlen;
47 }; 47 };
48 48
49 /* Old variable names */
50 #define pcm_handle (this->hidden->pcm_handle)
51 #define parent (this->hidden->parent)
52 #define mixbuf (this->hidden->mixbuf)
53 #define mixlen (this->hidden->mixlen)
54
55 #endif /* _ALSA_PCM_audio_h */ 49 #endif /* _ALSA_PCM_audio_h */
56 /* vi: set ts=4 sw=4 expandtab: */ 50 /* vi: set ts=4 sw=4 expandtab: */