Exemplo n.º 1
0
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);
		}
	}
}
Exemplo n.º 3
0
void ADLPlayer::musicCheck() {
	if(musicOn) {
		if(pSoundAdlibPC->isPlaying() == false) {
			changeMusic(MUSIC_PEACE);
		}
	}
}
Exemplo n.º 4
0
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();
	}
}
Exemplo n.º 6
0
void ADLPlayer::toggleSound()
{
	if(musicOn == false) {
		musicOn = true;
		currentMusicType = MUSIC_RANDOM;
		changeMusic(MUSIC_PEACE);
	} else {
		setMusic(false);
	}
}
Exemplo n.º 7
0
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;
		}
	}
}
Exemplo n.º 9
0
void JukeboxImplementation::stopPlaying() {
	isPlaying = false;
	changeMusic("sound/music_silence.snd");
}
Exemplo n.º 10
0
void JukeboxImplementation::startPlaying(const String& song) {
	isPlaying = true;
	changeMusic(song);
}
Exemplo n.º 11
0
void Music::resetMusic(bool seektoStoredPos) {
	if (_vm->getPlatform() != Common::kPlatformAmiga)
		changeMusic("Music:BackGrou", false, seektoStoredPos);
	else
		changeMusic("Music:BackGround", false, seektoStoredPos);
}