I load some .wav files in my iPhone app like this:
SoundEngine_LoadLoopingEffect([[bundle pathForResource:@"loop" ofType:@"wav"] UTF8String], NULL, NULL, &MySounds[Loop]);
SoundEngine_LoadEffect([[bundle pathForResource:@"intro" ofType:@"wav"] UTF8String], &MySounds[IntroMusic]);
The "intro.wav" file takes up some space (approx 2 meg). I play it only once when the app starts up. I'd like to free-up or release the memory allocated for this .wav file. How can I do this?
Does:
SoundEngine_Teardown();
release all the memory I've allocated by calling SoundEngine_LoadEffect?