comparison src/audio/macosx/SDL_coreaudio.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 37c9c4590689
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 struct SDL_PrivateAudioData { 32 struct SDL_PrivateAudioData
33 AudioUnit outputAudioUnit; 33 {
34 void *buffer; 34 AudioUnit outputAudioUnit;
35 UInt32 bufferOffset; 35 void *buffer;
36 UInt32 bufferSize; 36 UInt32 bufferOffset;
37 UInt32 bufferSize;
37 }; 38 };
38 39
39 /* Old variable names */ 40 /* Old variable names */
40 #define outputAudioUnit (this->hidden->outputAudioUnit) 41 #define outputAudioUnit (this->hidden->outputAudioUnit)
41 #define buffer (this->hidden->buffer) 42 #define buffer (this->hidden->buffer)
42 #define bufferOffset (this->hidden->bufferOffset) 43 #define bufferOffset (this->hidden->bufferOffset)
43 #define bufferSize (this->hidden->bufferSize) 44 #define bufferSize (this->hidden->bufferSize)
44 45
45 #endif /* _SDL_coreaudio_h */ 46 #endif /* _SDL_coreaudio_h */
47 /* vi: set ts=4 sw=4 expandtab: */