¡@

Home 

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

iphone Programming Glossary: al_no_error

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

which are going to be used to hold the format size and frequency of the sound file we are loading ALenum error AL_NO_ERROR ALenum format ALsizei size ALsizei freq ALvoid data NSBundle bundle NSBundle mainBundle Get the audio data from the file.. 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 bufferID.. 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 not find file..