I need to pause a 'sound effect' and was wondering if CocoDenshion provides this functionality.
Something like the following would be ideal...
[[SimpleAudioEngine sharedEngine] pauseEffect:@"mySoundEffect.mp3"];
The scenario I'm having to deal with in my game is below:
A music track is playing in the background
A 60 second long sound effect is also playing
The user then pauses the game.
At this point I need to pause both the music and the sound effect tracks.
I cannot simply stop the sound effect track and then restart it when the user resumes the
game because my main game loop needs to keep track of how much of the sound effect track
has been played (so I can play additional sound effects that are triggered later on).