¡@

Home 

2014/10/15 ¤U¤È 10:14:19

iphone Programming Glossary: soundlibrary

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

fileExt NSString aFileExt Check to make sure that a sound with the same key does not already exist NSNumber numVal soundLibrary objectForKey aSoundKey If the key is found log it and finish if numVal nil NSLog @ WARNING SoundManager Sound key ' @' already.. Could not find file ' @. @' aFileName aFileExt data NULL Place the buffer ID into the sound library against aSoundKey soundLibrary setObject NSNumber numberWithUnsignedInt bufferID forKey aSoundKey if DEBUG NSLog @ INFO SoundManager Loaded sound with.. removeSoundWithKey NSString aSoundKey Find the buffer which has been linked to the sound key provided NSNumber numVal soundLibrary objectForKey aSoundKey If the key is not found log it and finish if numVal nil NSLog @ WARNING SoundManager No sound with..