¡@

Home 

2014/10/15 ¤U¤È 10:03:33

iphone Programming Glossary: algeterror

How do you completely remove and release memory of an OpenAL sound file?

http://stackoverflow.com/questions/2035975/how-do-you-completely-remove-and-release-memory-of-an-openal-sound-file

ofType aFileExt retain if fileURL data MyGetOpenALAudioData fileURL size format freq CFRelease fileURL if error alGetError AL_NO_ERROR NSLog @ ERROR SoundManager Error loading sound x n error exit 1 Use the static buffer data API alBufferDataStaticProc.. sound x n error exit 1 Use the static buffer data API alBufferDataStaticProc bufferID format data size freq if error alGetError AL_NO_ERROR NSLog @ ERROR SoundManager Error attaching audio to buffer x n error else NSLog @ ERROR SoundManager Could.. Then adding if data free data See below. Thanks for your help. alBufferData bufferID format data size freq if error alGetError AL_NO_ERROR NSLog @ ERROR SoundManager Error attaching audio to buffer x n error if data free data else NSLog @ ERROR SoundManager..