When I use cocos2d-x to write a program, I found I could not change the volume of the music. Neither in the demo. So I open the source file. I found that the function setBackgroundMusicVolume is empty, and the function getBackgroundMusicVolume
just return 1.0f.
I want to know why. The code is showed below:
float SimpleAudioEngine::getBackgroundMusicVolume()
{
return 1.0;
}
void SimpleAudioEngine::setBackgroundMusicVolume(float volume)
{
}
float SimpleAudioEngine::getEffectsVolume()
{
return 1.0;
}
void SimpleAudioEngine::setEffectsVolume(float volume)
{
}