TTS: Rename LinuxTextToSpeechManager to SpeechDispatcherManager

Add a new define for the SpeechDispatcherManager
This commit is contained in:
Jaromir Wysoglad 2019-08-15 16:12:30 +02:00 committed by Filippos Karapetis
parent b97333d4b7
commit 0d332e065e
5 changed files with 47 additions and 44 deletions

View file

@ -25,7 +25,7 @@
#include "common/scummsys.h"
#if defined(USE_TTS) && defined(POSIX)
#if defined(USE_TTS) && defined(USE_SPEECH_DISPATCHER) && defined(POSIX)
#include "common/text-to-speech.h"
#include "common/str.h"
@ -37,7 +37,7 @@ struct StartSpeechParams {
Common::List<Common::String> *speechQueue;
};
class LinuxTextToSpeechManager : public Common::TextToSpeechManager {
class SpeechDispatcherManager : public Common::TextToSpeechManager {
public:
enum SpeechState {
READY,
@ -54,8 +54,8 @@ public:
SPEECH_BEGUN
};
LinuxTextToSpeechManager();
virtual ~LinuxTextToSpeechManager();
SpeechDispatcherManager();
virtual ~SpeechDispatcherManager();
virtual bool say(Common::String str, Action action, Common::String charset = "");