From 5f72260f201a6b63223a3cefb2829f91a9c11324 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Thu, 16 Feb 2006 05:55:44 +0000 Subject: Stop current music in HE60/61 games, before starting new music svn-id: r20719 --- engines/scumm/he/sound_he.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/engines/scumm/he/sound_he.cpp b/engines/scumm/he/sound_he.cpp index 65a67216df..36155f8a41 100644 --- a/engines/scumm/he/sound_he.cpp +++ b/engines/scumm/he/sound_he.cpp @@ -499,8 +499,10 @@ void Sound::playHESound(int soundID, int heOffset, int heChannel, int heFlags) { _vm->_mixer->playRaw(NULL, sound, size, rate, flags, soundID); } else if (READ_UINT32(ptr) == MKID('MIDI')) { - if (_vm->_musicEngine) { - _vm->_musicEngine->startSound(soundID); + if (_vm->_imuse) { + _vm->_imuse->stopSound(_currentMusic); + _currentMusic = soundID; + _vm->_imuse->startSound(soundID); } } } -- cgit v1.2.3