Reputation: 7440
I am developing a cocos2d IPhone app using the SimpleAudioEngine to play some mp3 sounds. My problem is that when I resume the app after a long time it is in background some sounds are no longer played. Have you ever experienced this? Do you know if there is any way to fix it?
Thank you in advance
Andrea
Upvotes: 0
Views: 505
Reputation: 726
Cocos2d retains/releases the [SimpleAudioEngine sharedEngine] and I don't think that you have control of this outside of the sharedEngine.
The key to this might be how you address in the appdelegate how your app resigns and becomes active.
It is not good to keep all your audio files in memory, especially if the app has been resigned for some time and thus, [SimpleAudioEngine sharedEngine] takes care of the memory management.
Upvotes: 1