aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/dreamweb.cpp
diff options
context:
space:
mode:
authorVladimir Menshakov2011-06-13 21:00:40 +0400
committerAlyssa Milburn2011-06-15 17:34:47 +0200
commitdaab18a7be8b5302699dc55f6dd3505195396852 (patch)
tree266b56968a5e3dd47059774baf7b8e7cf5fdf0f5 /engines/dreamweb/dreamweb.cpp
parent7e7152df286c84b9e6592d3d6823bde87a557659 (diff)
downloadscummvm-rg350-daab18a7be8b5302699dc55f6dd3505195396852.tar.gz
scummvm-rg350-daab18a7be8b5302699dc55f6dd3505195396852.tar.bz2
scummvm-rg350-daab18a7be8b5302699dc55f6dd3505195396852.zip
DREAMWEB: stop previous sound if it's still active
Diffstat (limited to 'engines/dreamweb/dreamweb.cpp')
-rw-r--r--engines/dreamweb/dreamweb.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp
index b318c856c5..b36a372905 100644
--- a/engines/dreamweb/dreamweb.cpp
+++ b/engines/dreamweb/dreamweb.cpp
@@ -404,6 +404,8 @@ void DreamWebEngine::playSound(uint8 channel, uint8 id, uint8 loops) {
} else
stream = raw;
+ if (_mixer->isSoundHandleActive(_channelHandle[channel]))
+ _mixer->stopHandle(_channelHandle[channel]);
_mixer->playStream(type, &_channelHandle[channel], stream);
}