comparison src/audio/macosx/SDL_coreaudio.h @ 2055:72cc2226d6a3

Fix potential memory leaks if CoreAudio initialization fails.
author Ryan C. Gordon <icculus@icculus.org>
date Sat, 28 Oct 2006 07:44:38 +0000
parents 5f6550e5184f
children ba0a03843db4
comparison
equal deleted inserted replaced
2054:d22372343744 2055:72cc2226d6a3
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 audioUnit; 34 AudioUnit audioUnit;
35 int audioUnitInitialized;
35 void *buffer; 36 void *buffer;
36 UInt32 bufferOffset; 37 UInt32 bufferOffset;
37 UInt32 bufferSize; 38 UInt32 bufferSize;
38 AudioDeviceID deviceID; 39 AudioDeviceID deviceID;
39 }; 40 };