comparison src/audio/mme/SDL_mmeaudio.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
30 30
31 /* Hidden "this" pointer for the video functions */ 31 /* Hidden "this" pointer for the video functions */
32 #define _THIS SDL_AudioDevice *this 32 #define _THIS SDL_AudioDevice *this
33 #define NUM_BUFFERS 2 33 #define NUM_BUFFERS 2
34 34
35 struct SharedMem { 35 struct SharedMem
36 {
36 HWAVEOUT sound; 37 HWAVEOUT sound;
37 WAVEHDR wHdr[NUM_BUFFERS]; 38 WAVEHDR wHdr[NUM_BUFFERS];
38 PCMWAVEFORMAT wFmt; 39 PCMWAVEFORMAT wFmt;
39 }; 40 };
40 41
41 struct SDL_PrivateAudioData { 42 struct SDL_PrivateAudioData
42 Uint8 *mixbuf; /* The raw allocated mixing buffer */ 43 {
44 Uint8 *mixbuf; /* The raw allocated mixing buffer */
43 struct SharedMem *shm; 45 struct SharedMem *shm;
44 int next_buffer; 46 int next_buffer;
45 }; 47 };
46 48
47 #define shm (this->hidden->shm) 49 #define shm (this->hidden->shm)
48 #define mixbuf (this->hidden->mixbuf) 50 #define mixbuf (this->hidden->mixbuf)
49 #define next_buffer (this->hidden->next_buffer) 51 #define next_buffer (this->hidden->next_buffer)
50 /* Old variable names */ 52 /* Old variable names */
51 #endif /* _SDL_lowaudio_h */ 53 #endif /* _SDL_lowaudio_h */
54 /* vi: set ts=4 sw=4 expandtab: */