diff options
author | Jaromir Wysoglad | 2019-07-18 23:53:52 +0200 |
---|---|---|
committer | Filippos Karapetis | 2019-09-01 22:47:55 +0300 |
commit | b5d5576f90c177c54170a4e68b251c2fd5219260 (patch) | |
tree | ad3dbb3d8085cfa02ebb50920264cb2268b9efb4 /common/text-to-speech.h | |
parent | 788b15652db9c5d062520c3202d30c827fd6fe21 (diff) | |
download | scummvm-rg350-b5d5576f90c177c54170a4e68b251c2fd5219260.tar.gz scummvm-rg350-b5d5576f90c177c54170a4e68b251c2fd5219260.tar.bz2 scummvm-rg350-b5d5576f90c177c54170a4e68b251c2fd5219260.zip |
TTS: Add check to getVoice, fix typo.
Check if _availableVoices isn't empty.
Replace availaible with available
Diffstat (limited to 'common/text-to-speech.h')
-rw-r--r-- | common/text-to-speech.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/common/text-to-speech.h b/common/text-to-speech.h index 63b18395dc..012a1e2e25 100644 --- a/common/text-to-speech.h +++ b/common/text-to-speech.h @@ -110,7 +110,7 @@ class TTSVoice { /** * Returns the voice description. This description is really tts engine - * specific and might be not be availaible with some tts engines. + * specific and might be not be available with some tts engines. */ String getDescription() { return _description; }; @@ -128,7 +128,7 @@ struct TTSState { int _volume; String _language; int _activeVoice; - Array<TTSVoice> _availaibleVoices; + Array<TTSVoice> _availableVoices; TTSState *_next; }; @@ -185,14 +185,14 @@ public: /** * Sets a voice to be used by the TTS. * - * @param index The index of the voice inside the _ttsState->_availaibleVoices array + * @param index The index of the voice inside the _ttsState->_availableVoices array */ virtual void setVoice(unsigned index) {} /** * Returns the voice, that is used right now */ - TTSVoice getVoice() { return _ttsState->_availaibleVoices[_ttsState->_activeVoice]; } + TTSVoice getVoice(); /** * Sets the speech rate @@ -247,9 +247,9 @@ public: String getLanguage() { return _ttsState->_language; } /** - * Returns array of availaible voices for the current language + * Returns array of available voices for the current language */ - Array<TTSVoice> getVoicesArray() { return _ttsState->_availaibleVoices; } + Array<TTSVoice> getVoicesArray() { return _ttsState->_availableVoices; } /** * Pushes the current state of the TTS |