From 9c8d425f64c440e833d09609b3033b57df229887 Mon Sep 17 00:00:00 2001 From: sluicebox Date: Tue, 26 Mar 2019 21:49:11 -0700 Subject: 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. --- engines/sci/engine/guest_additions.cpp | 3 +++ 1 file changed, 3 insertions(+) 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(); } } -- cgit v1.2.3