diff options
author | Vladimir Menshakov | 2011-06-13 21:00:40 +0400 |
---|---|---|
committer | Alyssa Milburn | 2011-06-15 17:34:47 +0200 |
commit | daab18a7be8b5302699dc55f6dd3505195396852 (patch) | |
tree | 266b56968a5e3dd47059774baf7b8e7cf5fdf0f5 | |
parent | 7e7152df286c84b9e6592d3d6823bde87a557659 (diff) | |
download | scummvm-rg350-daab18a7be8b5302699dc55f6dd3505195396852.tar.gz scummvm-rg350-daab18a7be8b5302699dc55f6dd3505195396852.tar.bz2 scummvm-rg350-daab18a7be8b5302699dc55f6dd3505195396852.zip |
DREAMWEB: stop previous sound if it's still active
-rw-r--r-- | engines/dreamweb/dreamweb.cpp | 2 |
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); } |