Mercurial > sdl-ios-xcode
comparison src/audio/windib/SDL_dibaudio.h @ 1662:782fd950bd46 SDL-1.3
Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API.
WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid.
The code is now run through a consistent indent format:
indent -i4 -nut -nsc -br -ce
The headers are being converted to automatically generate doxygen documentation.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 28 May 2006 13:04:16 +0000 |
parents | d910939febfa |
children | 5f6550e5184f 9dc81c6acaf5 |
comparison
equal
deleted
inserted
replaced
1661:281d3f4870e5 | 1662:782fd950bd46 |
---|---|
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: */ |