|
cocos2d for iPhone 1.0.0
2D engine for iOS and OS X
|
00001 /* 00002 00003 Disclaimer: IMPORTANT: This Apple software is supplied to you by 00004 Apple Inc. ("Apple") in consideration of your agreement to the 00005 following terms, and your use, installation, modification or 00006 redistribution of this Apple software constitutes acceptance of these 00007 terms. If you do not agree with these terms, please do not use, 00008 install, modify or redistribute this Apple software. 00009 00010 In consideration of your agreement to abide by the following terms, and 00011 subject to these terms, Apple grants you a personal, non-exclusive 00012 license, under Apple's copyrights in this original Apple software (the 00013 "Apple Software"), to use, reproduce, modify and redistribute the Apple 00014 Software, with or without modifications, in source and/or binary forms; 00015 provided that if you redistribute the Apple Software in its entirety and 00016 without modifications, you must retain this notice and the following 00017 text and disclaimers in all such redistributions of the Apple Software. 00018 Neither the name, trademarks, service marks or logos of Apple Inc. 00019 may be used to endorse or promote products derived from the Apple 00020 Software without specific prior written permission from Apple. Except 00021 as expressly stated in this notice, no other rights or licenses, express 00022 or implied, are granted by Apple herein, including but not limited to 00023 any patent rights that may be infringed by your derivative works or by 00024 other works in which the Apple Software may be incorporated. 00025 00026 The Apple Software is provided by Apple on an "AS IS" basis. APPLE 00027 MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION 00028 THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS 00029 FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND 00030 OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS. 00031 00032 IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL 00033 OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00034 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00035 INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, 00036 MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED 00037 AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), 00038 STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE 00039 POSSIBILITY OF SUCH DAMAGE. 00040 00041 Copyright (C) 2009 Apple Inc. All Rights Reserved. 00042 00043 $Id$ 00044 */ 00045 00046 /* 00047 This file contains code from version 1.1 and 1.4 of MyOpenALSupport.h taken from Apple's oalTouch version. 00048 The 1.4 version code is used for loading IMA4 files, however, this code causes very noticeable clicking 00049 when used to load wave files that are looped so the 1.1 version code is used specifically for loading 00050 wav files. 00051 */ 00052 00053 #ifndef __CD_OPENAL_H 00054 #define __CD_OPENAL_H 00055 00056 #ifdef __cplusplus 00057 extern "C" { 00058 #endif 00059 00060 00061 #import <OpenAL/al.h> 00062 #import <OpenAL/alc.h> 00063 #import <CoreFoundation/CFURL.h> 00064 00065 00066 //Taken from oalTouch MyOpenALSupport 1.1 00067 void* CDloadWaveAudioData(CFURLRef inFileURL, ALsizei *outDataSize, ALenum *outDataFormat, ALsizei* outSampleRate); 00068 void* CDloadCafAudioData(CFURLRef inFileURL, ALsizei *outDataSize, ALenum *outDataFormat, ALsizei* outSampleRate); 00069 void* CDGetOpenALAudioData(CFURLRef inFileURL, ALsizei *outDataSize, ALenum *outDataFormat, ALsizei* outSampleRate); 00070 00071 #ifdef __cplusplus 00072 } 00073 #endif 00074 00075 #endif 00076 00077