void SoundManager::setMute(bool val){ if(val==true){ stopAllAudio(); } if(val==false){ playBackground(-1); } mute=val; }
AudioPlayer::~AudioPlayer() { stopAllAudio(); }