I have provided mute functionality in my game. But if music player is running in background and when I start my game in normal mode (not in silent mode) music player is not getting paused
I have used [[SimpleAudioEngine sharedEngine] stopBackgroundMusic];
to stop background music and playing my game music using
[[SimpleAudioEngine sharedEngine] playBackgroundMusic:audiofilename loop:YES];
What should I do ?