Esempio n. 1
0
void ark_SoundEffectModel::setAllBackGroundSoundStatus(bool ison)
{
    allBGSoundStatus = ison;
    stopBackGroundSound();
    if (allBGSoundStatus)
    {
        //set on
		if(!curBGSoundPath.empty())
        playBackGroundSound(curBGSoundPath.c_str());
    }else
    {
        //set off
    } 
}
Esempio n. 2
0
void SoundUtil::setIsBackGroundSound(const bool &rIsSound)
{
    _bIsBackGroundSound = rIsSound;
    _bIsSoundMainBackGroundMusic = !rIsSound;
    _bIsBackGroundSound ? playBackgroundSound(BACKGROUNDSOUND) : stopBackGroundSound();
}