pauseAllEffects() not pausing sounds

136 Views Asked by At

I'm using some sound effects and background music in my cocos2d-x app. When I try to pause using

CocosDenshion::SimpleAudioEngine::getInstance()->pauseAllEffects()

it don't pause sounds. StopSounds also not working

CocosDenshion::SimpleAudioEngine::getInstance()->stopAllEffects()

Although pauseBackgroundMusic() is working fine. I'm playing effects that way :

CocosDenshion::SimpleAudioEngine::getInstance()->playEffect(fileName)

I also try by getting effect id and pausing that effect but it too doesn't work.

0

There are 0 best solutions below