From f78fc85f3a0c92245802098327425d21670d9479 Mon Sep 17 00:00:00 2001 From: Jaromir Wysoglad Date: Wed, 10 Jul 2019 10:49:29 +0200 Subject: TTS: Create a TTS skeleton --- .../text-to-speech/linux/linux-text-to-speech.cpp | 37 ++++++++++++++++++++ .../text-to-speech/linux/linux-text-to-speech.h | 40 ++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 backends/text-to-speech/linux/linux-text-to-speech.cpp create mode 100644 backends/text-to-speech/linux/linux-text-to-speech.h (limited to 'backends/text-to-speech') 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 -- cgit v1.2.3