aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2012-12-27 18:41:20 +0100
committerStrangerke2012-12-27 18:41:20 +0100
commit9a88c748fecddcf4d10856b7a58f6ec0ac4303df (patch)
treea70b003e7666a7c52fc89ebd8d48fca3dc507617
parentdc02df8cd27e9284247166a4d33fe5bb7bcd4a43 (diff)
downloadscummvm-rg350-9a88c748fecddcf4d10856b7a58f6ec0ac4303df.tar.gz
scummvm-rg350-9a88c748fecddcf4d10856b7a58f6ec0ac4303df.tar.bz2
scummvm-rg350-9a88c748fecddcf4d10856b7a58f6ec0ac4303df.zip
HOPKINS: Stop music properly when using the MOD player
-rw-r--r--engines/hopkins/sound.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/hopkins/sound.cpp b/engines/hopkins/sound.cpp
index 3672e29880..b35a3d801d 100644
--- a/engines/hopkins/sound.cpp
+++ b/engines/hopkins/sound.cpp
@@ -456,6 +456,9 @@ void SoundManager::playMusic() {
void SoundManager::stopMusic() {
if (Music._active)
Music._isPlaying = false;
+ if (_vm->getPlatform() == Common::kPlatformOS2 || _vm->getPlatform() == Common::kPlatformBeOS)
+ _vm->_mixer->stopHandle(_modHandle);
+
}
void SoundManager::delMusic() {