From 0434419b31cc6c27d2fdebb34abdf0b3131f6b99 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Sun, 28 Jul 2019 14:56:38 +0100 Subject: TTS: Implement TextToSpeechManager for macOS --- backends/platform/sdl/macosx/macosx.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'backends/platform/sdl/macosx/macosx.cpp') 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(); } -- cgit v1.2.3