aboutsummaryrefslogtreecommitdiff
path: root/gui/widget.cpp
diff options
context:
space:
mode:
authorJaromir Wysoglad2019-07-14 23:46:00 +0200
committerFilippos Karapetis2019-09-01 22:47:55 +0300
commit53e0f21adc92908beb1f2308268d4b3e04876887 (patch)
tree117e9d8bf4ab928a6cb170bf0e03dc15efc423cc /gui/widget.cpp
parent5e44796d6b4c117daf95635588f7d4c83602791e (diff)
downloadscummvm-rg350-53e0f21adc92908beb1f2308268d4b3e04876887.tar.gz
scummvm-rg350-53e0f21adc92908beb1f2308268d4b3e04876887.tar.bz2
scummvm-rg350-53e0f21adc92908beb1f2308268d4b3e04876887.zip
TTS: Reformat tts volume setting for GUI
Diffstat (limited to 'gui/widget.cpp')
-rw-r--r--gui/widget.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/gui/widget.cpp b/gui/widget.cpp
index d02d64fbeb..3269a5fd6c 100644
--- a/gui/widget.cpp
+++ b/gui/widget.cpp
@@ -260,10 +260,6 @@ void Widget::read(Common::String str) {
#ifdef USE_TTS
if (ConfMan.hasKey("tts_enabled", "scummvm") &&
ConfMan.getBool("tts_enabled", "scummvm")) {
- int volume = (ConfMan.getInt("speech_volume", "scummvm") * 100) / 256;
- if (ConfMan.hasKey("mute", "scummvm") && ConfMan.getBool("mute", "scummvm"))
- volume = 0;
- g_system->getTextToSpeechManager()->setVolume(volume);
g_system->getTextToSpeechManager()->say(str);
}
#endif