diff options
author | Paweł Kołodziejski | 2002-10-01 18:11:30 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2002-10-01 18:11:30 +0000 |
commit | bff43de73a082ab74f66bdd97b3ecb400c3c7df7 (patch) | |
tree | f25173c0de65d6508d5295730bb989a587acafc6 /sound/mixer.cpp | |
parent | c38d23b7263594471659dc23a802a03788e9bcf7 (diff) | |
download | scummvm-rg350-bff43de73a082ab74f66bdd97b3ecb400c3c7df7.tar.gz scummvm-rg350-bff43de73a082ab74f66bdd97b3ecb400c3c7df7.tar.bz2 scummvm-rg350-bff43de73a082ab74f66bdd97b3ecb400c3c7df7.zip |
changes for stoping sounds
svn-id: r5062
Diffstat (limited to 'sound/mixer.cpp')
-rw-r--r-- | sound/mixer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/mixer.cpp b/sound/mixer.cpp index c1ab3ed884..ef5c40af33 100644 --- a/sound/mixer.cpp +++ b/sound/mixer.cpp @@ -642,6 +642,11 @@ void SoundMixer::ChannelStream::mix(int16 * data, uint len) { const int16 * vol_tab = _mixer->_volumeTable; byte * end_of_data = _endOfData; + if (_toBeDestroyed) { + realDestroy(); + return; + } + if (_pos == end_of_data) { if (--_timeOut == 0) { realDestroy(); |