comparison src/audio/windib/SDL_dibaudio.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
19 Sam Lantinga 19 Sam Lantinga
20 slouken@libsdl.org 20 slouken@libsdl.org
21 */ 21 */
22 #include "SDL_config.h" 22 #include "SDL_config.h"
23 23
24 #ifndef _SDL_lowaudio_h 24 #ifndef _SDL_dibaudio_h
25 #define _SDL_lowaudio_h 25 #define _SDL_dibaudio_h
26 26
27 #include "../SDL_sysaudio.h" 27 #include "../SDL_sysaudio.h"
28 28
29 /* Hidden "this" pointer for the video functions */ 29 /* Hidden "this" pointer for the audio functions */
30 #define _THIS SDL_AudioDevice *this 30 #define _THIS SDL_AudioDevice *this
31 31
32 #define NUM_BUFFERS 2 /* -- Don't lower this! */ 32 #define NUM_BUFFERS 2 /* -- Don't lower this! */
33 33
34 struct SDL_PrivateAudioData 34 struct SDL_PrivateAudioData
38 Uint8 *mixbuf; /* The raw allocated mixing buffer */ 38 Uint8 *mixbuf; /* The raw allocated mixing buffer */
39 WAVEHDR wavebuf[NUM_BUFFERS]; /* Wave audio fragments */ 39 WAVEHDR wavebuf[NUM_BUFFERS]; /* Wave audio fragments */
40 int next_buffer; 40 int next_buffer;
41 }; 41 };
42 42
43 /* Old variable names */ 43 #endif /* _SDL_dibaudio_h */
44 #define sound (this->hidden->sound)
45 #define audio_sem (this->hidden->audio_sem)
46 #define mixbuf (this->hidden->mixbuf)
47 #define wavebuf (this->hidden->wavebuf)
48 #define next_buffer (this->hidden->next_buffer)
49 44
50 #endif /* _SDL_lowaudio_h */
51 /* vi: set ts=4 sw=4 expandtab: */ 45 /* vi: set ts=4 sw=4 expandtab: */