diff options
author | Jaromir Wysoglad | 2019-08-19 14:00:23 +0200 |
---|---|---|
committer | Filippos Karapetis | 2019-09-01 22:47:55 +0300 |
commit | 4b5b812712373a094e65506d30aa2ae611425e75 (patch) | |
tree | ca396b9db759128b718147905a9778431308c597 /backends/text-to-speech | |
parent | 0d332e065ec4a56a5964d8933f1d6118a85f6965 (diff) | |
download | scummvm-rg350-4b5b812712373a094e65506d30aa2ae611425e75.tar.gz scummvm-rg350-4b5b812712373a094e65506d30aa2ae611425e75.tar.bz2 scummvm-rg350-4b5b812712373a094e65506d30aa2ae611425e75.zip |
TTS: Better documentation of TTSVoice.
Diffstat (limited to 'backends/text-to-speech')
-rw-r--r-- | backends/text-to-speech/linux/linux-text-to-speech.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/text-to-speech/linux/linux-text-to-speech.cpp b/backends/text-to-speech/linux/linux-text-to-speech.cpp index e4843735ae..d2010831b3 100644 --- a/backends/text-to-speech/linux/linux-text-to-speech.cpp +++ b/backends/text-to-speech/linux/linux-text-to-speech.cpp @@ -349,6 +349,9 @@ void SpeechDispatcherManager::setLanguage(Common::String language) { } void SpeechDispatcherManager::createVoice(int typeNumber, Common::TTSVoice::Gender gender, Common::TTSVoice::Age age, char *description) { + // This pointer will point to data needed for voice switching. It is stored + // in the Common::TTSVoice and it is freed by freeVoiceData() once it + // is not needed. SPDVoiceType *type = (SPDVoiceType *) malloc(sizeof(SPDVoiceType)); *type = static_cast<SPDVoiceType>(typeNumber); Common::TTSVoice voice(gender, age, (void *) type, description); |