aboutsummaryrefslogtreecommitdiff
path: root/backends/text-to-speech
diff options
context:
space:
mode:
authorJaromir Wysoglad2019-08-04 23:49:16 -0700
committerFilippos Karapetis2019-09-01 22:47:55 +0300
commit4036b73b6c5fb776c7bb62209bf6b4fe36771667 (patch)
tree1f59dba260b755fc2b3cd8e593dec7bfb05db61d /backends/text-to-speech
parent13a32fc5e91d691214c975f5e545f432bd9c37ac (diff)
downloadscummvm-rg350-4036b73b6c5fb776c7bb62209bf6b4fe36771667.tar.gz
scummvm-rg350-4036b73b6c5fb776c7bb62209bf6b4fe36771667.tar.bz2
scummvm-rg350-4036b73b6c5fb776c7bb62209bf6b4fe36771667.zip
TTS: Fix INTERRUPT_NO_REPEAT on Windows
Diffstat (limited to 'backends/text-to-speech')
-rw-r--r--backends/text-to-speech/windows/windows-text-to-speech.cpp2
1 files changed, 1 insertions, 1 deletions
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 d0254fccb2..7c8f879189 100644
--- a/backends/text-to-speech/windows/windows-text-to-speech.cpp
+++ b/backends/text-to-speech/windows/windows-text-to-speech.cpp
@@ -125,7 +125,7 @@ bool WindowsTextToSpeechManager::say(Common::String str, Action action, Common::
str.replace((uint32)0, 0, pitch);
WCHAR *strW = Win32::ansiToUnicode(str.c_str(), Win32::getCodePageId(charset));
- if ((isPaused() || isSpeaking()) && action == INTERRUPT)
+ if ((isPaused() || isSpeaking()) && (action == INTERRUPT || action == INTERRUPT_NO_REPEAT))
stop();
bool result = _voice->Speak(strW, SPF_ASYNC, NULL) != S_OK;