From 4036b73b6c5fb776c7bb62209bf6b4fe36771667 Mon Sep 17 00:00:00 2001 From: Jaromir Wysoglad Date: Sun, 4 Aug 2019 23:49:16 -0700 Subject: TTS: Fix INTERRUPT_NO_REPEAT on Windows --- backends/text-to-speech/windows/windows-text-to-speech.cpp | 2 +- 1 file changed, 1 insertion(+), 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 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; -- cgit v1.2.3