void Music::checkRoomMusic(uint16 prevRoom, uint16 newRoom) { if (newRoom == CLOWNROOM) changeMusic("Music:Laugh", true, false); else if (newRoom == DIMROOM) changeMusic("Music:Rm81", true, false); else if (prevRoom == CLOWNROOM || prevRoom == DIMROOM) resetMusic(true); }
void DirectoryPlayer::musicCheck() { if(musicOn) { if(!Mix_PlayingMusic()) { changeMusic(MUSIC_PEACE); } } }
void ADLPlayer::musicCheck() { if(musicOn) { if(pSoundAdlibPC->isPlaying() == false) { changeMusic(MUSIC_PEACE); } } }
void Music::checkRoomMusic() { if ((_curRoomMusic == _vm->_roomNum) || !_musicFile) return; if (_vm->_roomNum == CLOWNROOM) { changeMusic("Music:Laugh", true, false); } else if (_vm->_roomNum == DIMROOM) { changeMusic("Music:Rm81", true, false); } else if (_curRoomMusic == CLOWNROOM || _curRoomMusic == DIMROOM) { if (_vm->getPlatform() != Common::kPlatformAmiga) changeMusic("Music:Backgrou", false, true); else changeMusic("Music:Background", false, true); } _curRoomMusic = _vm->_roomNum; }
void DirectoryPlayer::setMusic(bool value) { musicOn = value; if(musicOn) { changeMusic(MUSIC_RANDOM); } else if(music != NULL) { Mix_HaltMusic(); } }
void ADLPlayer::toggleSound() { if(musicOn == false) { musicOn = true; currentMusicType = MUSIC_RANDOM; changeMusic(MUSIC_PEACE); } else { setMusic(false); } }
void ADLPlayer::setMusic(bool value) { musicOn = value; if(musicOn) { changeMusic(MUSIC_RANDOM); } else { Mix_HookMusic(NULL, NULL); delete pSoundAdlibPC; pSoundAdlibPC = NULL; } }
void DirectoryPlayer::toggleSound() { if(musicOn == false) { musicOn = true; changeMusic(MUSIC_PEACE); } else { musicOn = false; if (music != NULL) { Mix_HaltMusic(); Mix_FreeMusic(music); music = NULL; } } }
void JukeboxImplementation::stopPlaying() { isPlaying = false; changeMusic("sound/music_silence.snd"); }
void JukeboxImplementation::startPlaying(const String& song) { isPlaying = true; changeMusic(song); }
void Music::resetMusic(bool seektoStoredPos) { if (_vm->getPlatform() != Common::kPlatformAmiga) changeMusic("Music:BackGrou", false, seektoStoredPos); else changeMusic("Music:BackGround", false, seektoStoredPos); }