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 /common | |
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 'common')
-rw-r--r-- | common/text-to-speech.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/common/text-to-speech.h b/common/text-to-speech.h index 019db23a0f..8e86721701 100644 --- a/common/text-to-speech.h +++ b/common/text-to-speech.h @@ -95,17 +95,17 @@ class TTSVoice { /** * Returns the data about the voice, this is engine specific variable, - * it has close to no value for anything else then communicating with + * it has close to no value for anything else then communicating * directly with the TTS engine, which should probably be done only by * the backends. */ - void setData(void *data) { _data = data; }; + void *getData() { return _data; }; /** - * Sets the voice age, should probably be used only by the backends + * Sets the voice data, should probably be used only by the backends * that are directly communicating with the TTS engine. */ - void *getData() { return _data; }; + void setData(void *data) { _data = data; }; /** * Returns the voice description. This description is really tts engine @@ -114,11 +114,11 @@ class TTSVoice { String getDescription() { return _description; }; protected: - Gender _gender; - Age _age; - void *_data; - String _description; - int *_refCount; + Gender _gender; ///< Gender of the voice + Age _age; ///< Age of the voice + void *_data; ///< Pointer to tts engine specific data about the voice + String _description; ///< Description of the voice (gets displayed in GUI) + int *_refCount; ///< Reference count (serves for proper feeing of _data) }; struct TTSState { |