comparison src/audio/windx5/SDL_dx5audio.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_dx5audio_h
25 #define _SDL_lowaudio_h 25 #define _SDL_dx5audio_h
26 26
27 #include "directx.h" 27 #include "directx.h"
28 28
29 #include "../SDL_sysaudio.h" 29 #include "../SDL_sysaudio.h"
30 30
31 /* Hidden "this" pointer for the video functions */ 31 /* Hidden "this" pointer for the audio functions */
32 #define _THIS SDL_AudioDevice *this 32 #define _THIS SDL_AudioDevice *this
33 33
34 /* The DirectSound objects */ 34 /* The DirectSound objects */
35 struct SDL_PrivateAudioData 35 struct SDL_PrivateAudioData
36 { 36 {
37 LPDIRECTSOUND sound; 37 LPDIRECTSOUND sound;
38 LPDIRECTSOUNDBUFFER mixbuf; 38 LPDIRECTSOUNDBUFFER mixbuf;
39 int NUM_BUFFERS; 39 int num_buffers;
40 int mixlen, silence; 40 int mixlen;
41 DWORD lastchunk; 41 DWORD lastchunk;
42 Uint8 *locked_buf; 42 Uint8 *locked_buf;
43 HANDLE audio_event;
44 }; 43 };
45 44
46 /* Old variable names */ 45 #endif /* _SDL_dx5audio_h */
47 #define sound (this->hidden->sound)
48 #define mixbuf (this->hidden->mixbuf)
49 #define NUM_BUFFERS (this->hidden->NUM_BUFFERS)
50 #define mixlen (this->hidden->mixlen)
51 #define silence (this->hidden->silence)
52 #define lastchunk (this->hidden->lastchunk)
53 #define locked_buf (this->hidden->locked_buf)
54 #define audio_event (this->hidden->audio_event)
55
56 #endif /* _SDL_lowaudio_h */
57 46
58 /* vi: set ts=4 sw=4 expandtab: */ 47 /* vi: set ts=4 sw=4 expandtab: */