aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorThierry Crozat2019-07-28 14:56:38 +0100
committerFilippos Karapetis2019-09-01 22:47:55 +0300
commit0434419b31cc6c27d2fdebb34abdf0b3131f6b99 (patch)
tree265bdd3f72c20dab7584f80ef794bfd5bdbb18e7 /backends/platform
parente965df1e8830c994da959ceaeb153d85fae7b859 (diff)
downloadscummvm-rg350-0434419b31cc6c27d2fdebb34abdf0b3131f6b99.tar.gz
scummvm-rg350-0434419b31cc6c27d2fdebb34abdf0b3131f6b99.tar.bz2
scummvm-rg350-0434419b31cc6c27d2fdebb34abdf0b3131f6b99.zip
TTS: Implement TextToSpeechManager for macOS
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/sdl/macosx/macosx.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/backends/platform/sdl/macosx/macosx.cpp b/backends/platform/sdl/macosx/macosx.cpp
index 3628168e71..3cca69b4a5 100644
--- a/backends/platform/sdl/macosx/macosx.cpp
+++ b/backends/platform/sdl/macosx/macosx.cpp
@@ -32,6 +32,7 @@
#include "backends/platform/sdl/macosx/macosx.h"
#include "backends/updates/macosx/macosx-updates.h"
#include "backends/taskbar/macosx/macosx-taskbar.h"
+#include "backends/text-to-speech/macosx/macosx-text-to-speech.h"
#include "backends/dialogs/macosx/macosx-dialogs.h"
#include "backends/platform/sdl/macosx/macosx_wrapper.h"
#include "backends/fs/posix/posix-fs.h"
@@ -86,6 +87,11 @@ void OSystem_MacOSX::initBackend() {
_updateManager = new MacOSXUpdateManager();
#endif
+#ifdef USE_MACOSX_TTS
+ // Initialize Text to Speech manager
+ _textToSpeechManager = new MacOSXTextToSpeechManager();
+#endif
+
// Invoke parent implementation of this method
OSystem_POSIX::initBackend();
}