aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/he/sound_he.cpp
diff options
context:
space:
mode:
authornukeykt2017-12-23 23:01:29 +0900
committerEugene Sandulenko2018-02-04 12:56:06 +0100
commite5bfead3458661140d17863ffe33af5f71638387 (patch)
tree797c71145c22d959e99a019ed51a07ea03c19d99 /engines/scumm/he/sound_he.cpp
parentbdda3447a3c0eebc31ac3202699a397ca4122ddf (diff)
downloadscummvm-rg350-e5bfead3458661140d17863ffe33af5f71638387.tar.gz
scummvm-rg350-e5bfead3458661140d17863ffe33af5f71638387.tar.bz2
scummvm-rg350-e5bfead3458661140d17863ffe33af5f71638387.zip
SCUMM HE: Use Miles AdLib driver
Diffstat (limited to 'engines/scumm/he/sound_he.cpp')
-rw-r--r--engines/scumm/he/sound_he.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/scumm/he/sound_he.cpp b/engines/scumm/he/sound_he.cpp
index 9da3641064..07a81f5310 100644
--- a/engines/scumm/he/sound_he.cpp
+++ b/engines/scumm/he/sound_he.cpp
@@ -765,6 +765,10 @@ void SoundHE::playHESound(int soundID, int heOffset, int heChannel, int heFlags,
_vm->_imuse->stopSound(_currentMusic);
_currentMusic = soundID;
_vm->_imuse->startSoundWithNoteOffset(soundID, heOffset);
+ } else if (_vm->_musicEngine) {
+ _vm->_musicEngine->stopSound(_currentMusic);
+ _currentMusic = soundID;
+ _vm->_musicEngine->startSoundWithTrackID(soundID, heOffset);
}
}
}