Mute and Unmute Sound in Cocos2D

By | May 19, 2011


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];


One thought on “Mute and Unmute Sound in Cocos2D

Leave a Reply

Your email address will not be published. Required fields are marked *