cocos2d for android, based on cocos2d-android-0.82, and now ported from cocos2d-iphone 0.99.4. The googlecode address is here: http://code.google.com/p/cocos2d-android-1/ . There are several demos to watch.
610
stars
291
forks
source link
SoundEngine mute and unmute receive nullpoint. #76
//if my button was pressed
if(SoundEngine.sharedEngine().isMute()) {
SoundEngine.sharedEngine().unmute();
} else {
SoundEngine.sharedEngine().mute();
}
when i start my game, and i press a lot of times, no have problem. But, when i start my game, stop and go back to unmute the sound i receive NullPointException.
I have a button that mute and unmute the sound.
basically i have
//if my button was pressed if(SoundEngine.sharedEngine().isMute()) { SoundEngine.sharedEngine().unmute(); } else { SoundEngine.sharedEngine().mute(); }
when i start my game, and i press a lot of times, no have problem. But, when i start my game, stop and go back to unmute the sound i receive NullPointException.
on SoundEngine line 64.