slouken@935: /* slouken@5535: Simple DirectMedia Layer slouken@6138: Copyright (C) 1997-2012 Sam Lantinga slouken@935: slouken@5535: This software is provided 'as-is', without any express or implied slouken@5535: warranty. In no event will the authors be held liable for any damages slouken@5535: arising from the use of this software. slouken@935: slouken@5535: Permission is granted to anyone to use this software for any purpose, slouken@5535: including commercial applications, and to alter it and redistribute it slouken@5535: freely, subject to the following restrictions: slouken@935: slouken@5535: 1. The origin of this software must not be misrepresented; you must not slouken@5535: claim that you wrote the original software. If you use this software slouken@5535: in a product, an acknowledgment in the product documentation would be slouken@5535: appreciated but is not required. slouken@5535: 2. Altered source versions must be plainly marked as such, and must not be slouken@5535: misrepresented as being the original software. slouken@5535: 3. This notice may not be removed or altered from any source distribution. slouken@935: */ slouken@1402: #include "SDL_config.h" slouken@935: slouken@935: #ifndef _SDL_coreaudio_h slouken@935: #define _SDL_coreaudio_h slouken@935: slouken@1361: #include "../SDL_sysaudio.h" slouken@935: icculus@5596: #if !defined(__IPHONEOS__) icculus@5596: #define MACOSX_COREAUDIO 1 icculus@5596: #endif icculus@5596: icculus@5605: #if MACOSX_COREAUDIO icculus@5605: #include icculus@5605: #include icculus@5646: #if MAC_OS_X_VERSION_MAX_ALLOWED <= 1050 icculus@5605: #include icculus@5605: #endif icculus@5605: #endif icculus@5605: icculus@5605: #include icculus@5605: icculus@2049: /* Hidden "this" pointer for the audio functions */ slouken@935: #define _THIS SDL_AudioDevice *this slouken@935: slouken@1895: struct SDL_PrivateAudioData slouken@1895: { icculus@2049: AudioUnit audioUnit; icculus@2056: int audioUnitOpened; slouken@1895: void *buffer; slouken@1895: UInt32 bufferOffset; slouken@1895: UInt32 bufferSize; icculus@5596: #if MACOSX_COREAUDIO icculus@2049: AudioDeviceID deviceID; icculus@5596: #endif slouken@935: }; slouken@935: slouken@935: #endif /* _SDL_coreaudio_h */ slouken@1895: /* vi: set ts=4 sw=4 expandtab: */