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