diff options
-rw-r--r-- | queen/cutaway.cpp | 3 | ||||
-rw-r--r-- | queen/sound.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/queen/cutaway.cpp b/queen/cutaway.cpp index 012ba4cc33..ae6bbc7e01 100644 --- a/queen/cutaway.cpp +++ b/queen/cutaway.cpp @@ -986,9 +986,10 @@ void Cutaway::run(char *nextFilename) { joeBob->animating = 0; joeBob->moving = 0; - // if the cutaway has been cancelled, we must stop the speech as well + // if the cutaway has been cancelled, we must stop the speech and the sfx as well if (_vm->sound()->speechOn()) _vm->sound()->stopSpeech(); + _vm->sound()->stopSfx(); _vm->input()->cutawayRunning(false); _vm->input()->cutawayQuitReset(); diff --git a/queen/sound.h b/queen/sound.h index 33c9398fb2..2526aff770 100644 --- a/queen/sound.h +++ b/queen/sound.h @@ -60,6 +60,7 @@ public: void playSong(int16 songNum); void playLastSong() { playSong(_lastOverride); } void stopSpeech() { _mixer->stopHandle(_speechHandle); } + void stopSfx() { _mixer->stopHandle(_sfxHandle); } bool sfxOn() const { return _sfxToggle; } void sfxToggle(bool val) { _sfxToggle = val; } |