【已解决】关于背景音乐音量控制

lcc47uk49
Thu, 17 Apr 2014 08:49:14 +0000

cocos2d-x自带的案例中，怎么不能改变背景音量？

SimpleAudioEngine::sharedEngine()->preloadBackgroundMusic( MUSIC_FILE );
SimpleAudioEngine::sharedEngine()->preloadEffect( EFFECT_FILE );

// set default volume
SimpleAudioEngine::sharedEngine()->setEffectsVolume(0.0);
SimpleAudioEngine::sharedEngine()->setBackgroundMusicVolume(0.0);//这里设置为0不就应该没声音了么，为何运行还有声音?

求各位前辈不吝赐教~ 谢谢！

阅读整个主题