From 4d9572073192a3cefe7b148a27197c2ca9f60087 Mon Sep 17 00:00:00 2001 From: Jaromir Wysoglad Date: Thu, 18 Jul 2019 12:19:47 -0700 Subject: TTS: Fix voice setting on startup The ScummVM was crashing because of an assert, when there was less voices availaible, than what was set in the ConfMan. Now the voice just falls back to 0th voice, if there are not enough voices. --- backends/text-to-speech/windows/windows-text-to-speech.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'backends/text-to-speech') diff --git a/backends/text-to-speech/windows/windows-text-to-speech.cpp b/backends/text-to-speech/windows/windows-text-to-speech.cpp index fec5a408d1..e9f28d966b 100644 --- a/backends/text-to-speech/windows/windows-text-to-speech.cpp +++ b/backends/text-to-speech/windows/windows-text-to-speech.cpp @@ -49,7 +49,6 @@ ISpAudio *_audio; WindowsTextToSpeechManager::WindowsTextToSpeechManager() : _speechState(BROKEN){ - ConfMan.setInt("tts_voice", 0); init(); } -- cgit v1.2.3