KYRA: Fix haltTrack and beginFadeOut for AdLib driver.

Formerly the were not executed properly when the sfx output was disabled.
This commit is contained in:
Johannes Schickel 2011-10-29 02:40:50 +02:00
parent 8ea2d5dbb1
commit 488fb5c14b

View File

@ -2304,8 +2304,8 @@ void SoundAdLibPC::playTrack(uint8 track) {
} }
void SoundAdLibPC::haltTrack() { void SoundAdLibPC::haltTrack() {
playSoundEffect(0); play(0);
playSoundEffect(0); play(0);
//_vm->_system->delayMillis(3 * 60); //_vm->_system->delayMillis(3 * 60);
} }
@ -2333,7 +2333,7 @@ void SoundAdLibPC::play(uint8 track) {
} }
void SoundAdLibPC::beginFadeOut() { void SoundAdLibPC::beginFadeOut() {
playSoundEffect(1); play(1);
} }
void SoundAdLibPC::loadSoundFile(uint file) { void SoundAdLibPC::loadSoundFile(uint file) {