Hi! I´m trying to use your code, to do it I declare in SimpleAudioEngine.h:
Then in SimpleAudioEngine.m in the init method:
loadedSounds = [[NSMutableArray alloc]init];
and in the dealloc method:
loadedSounds = nil;
In the preLoadEffect method:
To finish with SimpleAudioEngine.m I copy your flushPreloadedSounds method.
Then in each level, in dealloc method I call to:
1. This is the correct way to do this?
2. I also use the -(CDSoundSource ) soundSourceForFile:(NSString) filePath method to make a fade in and fade out of several sounds and I release them in the dealloc method, but I don´t know if this is enough to unload the sound...