aboutsummaryrefslogtreecommitdiff
path: root/scumm/sound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/sound.cpp')
-rw-r--r--scumm/sound.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp
index 28b95c776f..7f424c7875 100644
--- a/scumm/sound.cpp
+++ b/scumm/sound.cpp
@@ -574,8 +574,10 @@ int Sound::startTalkSound(uint32 offset, uint32 b, int mode) {
void Sound::stopTalkSound() {
if (_sfxMode & 2) {
- if (_talkChannel != -1)
+ if (_talkChannel != -1) {
_scumm->_mixer->stop(_talkChannel);
+ _talkChannel = -1;
+ }
_sfxMode &= ~2;
}
}
@@ -1078,8 +1080,8 @@ void Sound::bundleMusicHandler(Scumm *scumm) {
_nameBundleMusic = "";
if (_bundleMusicTrack != -1) {
_scumm->_mixer->stop(_bundleMusicTrack);
+ _bundleMusicTrack = -1;
}
- _bundleMusicTrack = -1;
if (_musicBundleBufFinal) {
free(_musicBundleBufFinal);
_musicBundleBufFinal = NULL;