comparison src/audio/windx5/SDL_dx5audio.h @ 1877:9b02a5b97f79

Fixed bug #69 Hopefully this takes care of most of the audio dropouts in Windows
author Sam Lantinga <slouken@libsdl.org>
date Fri, 23 Jun 2006 08:15:47 +0000
parents d910939febfa
children c121d94672cb a1b03ba2fcd0
comparison
equal deleted inserted replaced
1876:406b8325ee34 1877:9b02a5b97f79
35 struct SDL_PrivateAudioData { 35 struct SDL_PrivateAudioData {
36 LPDIRECTSOUND sound; 36 LPDIRECTSOUND sound;
37 LPDIRECTSOUNDBUFFER mixbuf; 37 LPDIRECTSOUNDBUFFER mixbuf;
38 int NUM_BUFFERS; 38 int NUM_BUFFERS;
39 int mixlen, silence; 39 int mixlen, silence;
40 DWORD playing; 40 DWORD lastchunk;
41 Uint8 *locked_buf; 41 Uint8 *locked_buf;
42 HANDLE audio_event; 42 HANDLE audio_event;
43 }; 43 };
44 44
45 /* Old variable names */ 45 /* Old variable names */
46 #define sound (this->hidden->sound) 46 #define sound (this->hidden->sound)
47 #define mixbuf (this->hidden->mixbuf) 47 #define mixbuf (this->hidden->mixbuf)
48 #define NUM_BUFFERS (this->hidden->NUM_BUFFERS) 48 #define NUM_BUFFERS (this->hidden->NUM_BUFFERS)
49 #define mixlen (this->hidden->mixlen) 49 #define mixlen (this->hidden->mixlen)
50 #define silence (this->hidden->silence) 50 #define silence (this->hidden->silence)
51 #define playing (this->hidden->playing) 51 #define lastchunk (this->hidden->lastchunk)
52 #define locked_buf (this->hidden->locked_buf) 52 #define locked_buf (this->hidden->locked_buf)
53 #define audio_event (this->hidden->audio_event) 53 #define audio_event (this->hidden->audio_event)
54 54
55 #endif /* _SDL_lowaudio_h */ 55 #endif /* _SDL_lowaudio_h */