aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorJaromir Wysoglad2019-07-10 10:49:29 +0200
committerFilippos Karapetis2019-09-01 22:47:55 +0300
commitf78fc85f3a0c92245802098327425d21670d9479 (patch)
tree4ae190e34e8b90c6dd8ce5a5a0ecedcba62c691e /backends/platform
parentb1b03b18d35d59ad0d712c723a3d4f8c02dcfc18 (diff)
downloadscummvm-rg350-f78fc85f3a0c92245802098327425d21670d9479.tar.gz
scummvm-rg350-f78fc85f3a0c92245802098327425d21670d9479.tar.bz2
scummvm-rg350-f78fc85f3a0c92245802098327425d21670d9479.zip
TTS: Create a TTS skeleton
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/sdl/posix/posix.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/backends/platform/sdl/posix/posix.cpp b/backends/platform/sdl/posix/posix.cpp
index b204daa643..50a1ccdc58 100644
--- a/backends/platform/sdl/posix/posix.cpp
+++ b/backends/platform/sdl/posix/posix.cpp
@@ -54,6 +54,10 @@
#ifdef HAS_POSIX_SPAWN
#include <spawn.h>
#endif
+
+#ifdef USE_LINUX_TTS
+#include "backends/text-to-speech/linux/linux-text-to-speech.h"
+#endif
extern char **environ;
OSystem_POSIX::OSystem_POSIX(Common::String baseConfigName)
@@ -79,6 +83,11 @@ void OSystem_POSIX::initBackend() {
if (_savefileManager == 0)
_savefileManager = new POSIXSaveFileManager();
+#ifdef USE_LINUX_TTS
+ // Initialize Text to Speech manager
+ _textToSpeechManager = new LinuxTextToSpeechManager();
+#endif
+
// Invoke parent implementation of this method
OSystem_SDL::initBackend();