aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorsluicebox2019-03-26 21:49:11 -0700
committerFilippos Karapetis2019-03-27 07:49:42 +0200
commit9c8d425f64c440e833d09609b3033b57df229887 (patch)
tree344b26cf09312eae4f00b6e7f1b5563504204719 /engines
parent831072d809016a9e6d3c85c8fc9ce6751125b8e6 (diff)
downloadscummvm-rg350-9c8d425f64c440e833d09609b3033b57df229887.tar.gz
scummvm-rg350-9c8d425f64c440e833d09609b3033b57df229887.tar.bz2
scummvm-rg350-9c8d425f64c440e833d09609b3033b57df229887.zip
SCI: Fix broken speech after starting in text mode
Fixes bug #10924 where starting or restoring in text mode and then changing to speech mode within a game results in muted speech. This is a regression introduced between 1.9 and 2.0, probably as part of the synchronization refactor that created GuestAdditions.
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/guest_additions.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sci/engine/guest_additions.cpp b/engines/sci/engine/guest_additions.cpp
index d7e9870801..afc87a5a8f 100644
--- a/engines/sci/engine/guest_additions.cpp
+++ b/engines/sci/engine/guest_additions.cpp
@@ -919,6 +919,9 @@ void GuestAdditions::syncMessageTypeToScummVMUsingDefaultStrategy(const int inde
ConfMan.setBool("subtitles", value.toSint16() & kMessageTypeSubtitles);
ConfMan.setBool("speech_mute", !(value.toSint16() & kMessageTypeSpeech));
+
+ // need to update sound mixer volumes so that speech_mute will take effect
+ g_sci->updateSoundMixerVolumes();
}
}