Mercurial > sdl-ios-xcode
comparison src/audio/windib/SDL_dibaudio.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 |
---|---|
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 video 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 |
35 HWAVEOUT sound; | 35 { |
36 HANDLE audio_sem; | 36 HWAVEOUT sound; |
37 Uint8 *mixbuf; /* The raw allocated mixing buffer */ | 37 HANDLE audio_sem; |
38 WAVEHDR wavebuf[NUM_BUFFERS]; /* Wave audio fragments */ | 38 Uint8 *mixbuf; /* The raw allocated mixing buffer */ |
39 int next_buffer; | 39 WAVEHDR wavebuf[NUM_BUFFERS]; /* Wave audio fragments */ |
40 int next_buffer; | |
40 }; | 41 }; |
41 | 42 |
42 /* Old variable names */ | 43 /* Old variable names */ |
43 #define sound (this->hidden->sound) | 44 #define sound (this->hidden->sound) |
44 #define audio_sem (this->hidden->audio_sem) | 45 #define audio_sem (this->hidden->audio_sem) |
45 #define mixbuf (this->hidden->mixbuf) | 46 #define mixbuf (this->hidden->mixbuf) |
46 #define wavebuf (this->hidden->wavebuf) | 47 #define wavebuf (this->hidden->wavebuf) |
47 #define next_buffer (this->hidden->next_buffer) | 48 #define next_buffer (this->hidden->next_buffer) |
48 | 49 |
49 #endif /* _SDL_lowaudio_h */ | 50 #endif /* _SDL_lowaudio_h */ |
51 /* vi: set ts=4 sw=4 expandtab: */ |