comparison src/audio/macosx/SDL_coreaudio.h @ 2049:5f6550e5184f

Merged SDL-ryan-multiple-audio-device branch r2803:2871 into the trunk.
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 17 Oct 2006 09:15:21 +0000
parents c121d94672cb
children 72cc2226d6a3
comparison
equal deleted inserted replaced
2048:6067c7f9a672 2049:5f6550e5184f
24 #ifndef _SDL_coreaudio_h 24 #ifndef _SDL_coreaudio_h
25 #define _SDL_coreaudio_h 25 #define _SDL_coreaudio_h
26 26
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 audio functions */
30 #define _THIS SDL_AudioDevice *this 30 #define _THIS SDL_AudioDevice *this
31 31
32 struct SDL_PrivateAudioData 32 struct SDL_PrivateAudioData
33 { 33 {
34 AudioUnit outputAudioUnit; 34 AudioUnit audioUnit;
35 void *buffer; 35 void *buffer;
36 UInt32 bufferOffset; 36 UInt32 bufferOffset;
37 UInt32 bufferSize; 37 UInt32 bufferSize;
38 AudioDeviceID deviceID;
38 }; 39 };
39
40 /* Old variable names */
41 #define outputAudioUnit (this->hidden->outputAudioUnit)
42 #define buffer (this->hidden->buffer)
43 #define bufferOffset (this->hidden->bufferOffset)
44 #define bufferSize (this->hidden->bufferSize)
45 40
46 #endif /* _SDL_coreaudio_h */ 41 #endif /* _SDL_coreaudio_h */
47 /* vi: set ts=4 sw=4 expandtab: */ 42 /* vi: set ts=4 sw=4 expandtab: */