Hi,
In order to mute and unmute sound in Cocos2D iPhone, use the following code.
if ([[SimpleAudioEngine sharedEngine] mute]) { // This will unmute the sound [[SimpleAudioEngine sharedEngine] setMute:0]; } else { //This will mute the sound [[SimpleAudioEngine sharedEngine] setMute:1]; }
🙂
Thanks, that was just what I needed