aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/imuse
diff options
context:
space:
mode:
authorathrxx2019-08-07 23:03:51 +0200
committerathrxx2020-01-02 14:42:47 +0100
commit923b8ea3124ee9682e45855a4a51f877e02b3a8a (patch)
tree455f7747f070d1950da7c61365e2525edd1c8f0f /engines/scumm/imuse
parent23f51c8182ee6cc01251bb26d504d73e882ed1f6 (diff)
downloadscummvm-rg350-923b8ea3124ee9682e45855a4a51f877e02b3a8a.tar.gz
scummvm-rg350-923b8ea3124ee9682e45855a4a51f877e02b3a8a.tar.bz2
scummvm-rg350-923b8ea3124ee9682e45855a4a51f877e02b3a8a.zip
SCUMM: (iMUSE/Amiga) - improve sound driver destructor
Diffstat (limited to 'engines/scumm/imuse')
-rw-r--r--engines/scumm/imuse/drivers/amiga.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/imuse/drivers/amiga.cpp b/engines/scumm/imuse/drivers/amiga.cpp
index 9002e2b9f4..c9855ea3ec 100644
--- a/engines/scumm/imuse/drivers/amiga.cpp
+++ b/engines/scumm/imuse/drivers/amiga.cpp
@@ -676,12 +676,12 @@ void IMuseDriver_Amiga::close() {
_isOpen = false;
- Common::StackLock lock(_mutex);
-
stopPaula();
setTimerCallback(0, 0);
_mixer->stopHandle(_soundHandle);
+ Common::StackLock lock(_mutex);
+
unloadInstruments();
g_system->delayMillis(20);