summaryrefslogtreecommitdiffstats
path: root/src/plugins/tts/flite/flite.pro
diff options
context:
space:
mode:
authorTuomas Tuononen <tuomas.tuononen@code-q.fi>2015-11-26 12:57:17 +0200
committerTuomas Tuononen <tuomas.tuononen@code-q.fi>2016-04-05 20:17:50 +0000
commita99d17fa754ea25f2729c934788a1693401657d0 (patch)
tree9c9d3767a44124335abc81903b1ebea35da33ed7 /src/plugins/tts/flite/flite.pro
parent068a87502a34e7ddae66b2a4906f359a55a5184a (diff)
flite: Move audio output and thread handling to a generic base class
- Other engine integrations can later use the common parts - Replace the use of QGlobalStatic with a reference counted singleton object for flite processor instance. This prevents QAudioOutput from crashing on application exit if TTS is still speaking, as QGlobalStatic is destroyed too late. - Implement generic support for pause/resume by blocking audio output Change-Id: I573e9dececb51263db825d53d6a17da175c3e684 Reviewed-by: Jeremy Whiting <jpwhiting@kde.org> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
Diffstat (limited to 'src/plugins/tts/flite/flite.pro')
-rw-r--r--src/plugins/tts/flite/flite.pro8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/tts/flite/flite.pro b/src/plugins/tts/flite/flite.pro
index 8f07abf..f80bea0 100644
--- a/src/plugins/tts/flite/flite.pro
+++ b/src/plugins/tts/flite/flite.pro
@@ -7,11 +7,15 @@ load(qt_plugin)
HEADERS += \
qtexttospeech_flite.h \
- qtexttospeech_flite_plugin.h
+ qtexttospeech_flite_plugin.h \
+ qtexttospeech_flite_processor.h \
+ ../common/qtexttospeechprocessor_p.h
SOURCES += \
qtexttospeech_flite.cpp \
- qtexttospeech_flite_plugin.cpp
+ qtexttospeech_flite_plugin.cpp \
+ qtexttospeech_flite_processor.cpp \
+ ../common/qtexttospeechprocessor.cpp
OTHER_FILES += \
flite_plugin.json