aboutsummaryrefslogtreecommitdiff
path: root/gui/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/options.cpp')
-rw-r--r--gui/options.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/options.cpp b/gui/options.cpp
index 39bf6160ea..3195694935 100644
--- a/gui/options.cpp
+++ b/gui/options.cpp
@@ -2159,6 +2159,10 @@ void GlobalOptionsDialog::apply() {
ttsMan->setLanguage(guiLang);
}
}
+ int volume = (ConfMan.getInt("speech_volume", "scummvm") * 100) / 256;
+ if (ConfMan.hasKey("mute", "scummvm") && ConfMan.getBool("mute", "scummvm"))
+ volume = 0;
+ ttsMan->setVolume(volume);
ConfMan.setBool("tts_enabled", _ttsCheckbox->getState(), _domain);
int selectedVoice = _ttsVoiceSelectionPopUp->getSelectedTag();
ConfMan.setInt("tts_voice", selectedVoice, _domain);