diff options
Diffstat (limited to 'backends')
| -rw-r--r-- | backends/module.mk | 5 | ||||
| -rw-r--r-- | backends/platform/sdl/posix/posix.cpp | 9 | ||||
| -rw-r--r-- | backends/text-to-speech/linux/linux-text-to-speech.cpp | 37 | ||||
| -rw-r--r-- | backends/text-to-speech/linux/linux-text-to-speech.h | 40 |
4 files changed, 91 insertions, 0 deletions
diff --git a/backends/module.mk b/backends/module.mk index ee123434d8..42c840436b 100644 --- a/backends/module.mk +++ b/backends/module.mk @@ -344,5 +344,10 @@ MODULE_OBJS += \ saves/recorder/recorder-saves.o endif +ifdef USE_LINUX_TTS +MODULE_OBJS += \ + text-to-speech/linux/linux-text-to-speech.o +endif + # Include common rules include $(srcdir)/rules.mk 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(); diff --git a/backends/text-to-speech/linux/linux-text-to-speech.cpp b/backends/text-to-speech/linux/linux-text-to-speech.cpp new file mode 100644 index 0000000000..7a8e899595 --- /dev/null +++ b/backends/text-to-speech/linux/linux-text-to-speech.cpp @@ -0,0 +1,37 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +// Disable symbol overrides so that we can use system headers. +#define FORBIDDEN_SYMBOL_ALLOW_ALL + +#include "backends/text-to-speech/linux/linux-text-to-speech.h" + +#if defined(USE_LINUX_TTS) +#include "common/translation.h" + +LinuxTextToSpeechManager::LinuxTextToSpeechManager() { +} + +LinuxTextToSpeechManager::~LinuxTextToSpeechManager() { +} + +#endif diff --git a/backends/text-to-speech/linux/linux-text-to-speech.h b/backends/text-to-speech/linux/linux-text-to-speech.h new file mode 100644 index 0000000000..ab9b2b6fe2 --- /dev/null +++ b/backends/text-to-speech/linux/linux-text-to-speech.h @@ -0,0 +1,40 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + */ + +#ifndef BACKENDS_TEXT_TO_SPEECH_LINUX_H +#define BACKENDS_TEXT_TO_SPEECH_LINUX_H + +#include "common/scummsys.h" + +#if defined(USE_LINUX_TTS) + +#include "common/text-to-speech.h" + +class LinuxTextToSpeechManager : public Common::TextToSpeechManager { +public: + LinuxTextToSpeechManager(); + virtual ~LinuxTextToSpeechManager(); +}; + +#endif + +#endif // BACKENDS_UPDATES_LINUX_H |
