diff options
author | Jaromir Wysoglad | 2019-07-18 00:37:37 +0200 |
---|---|---|
committer | Filippos Karapetis | 2019-09-01 22:47:55 +0300 |
commit | 62e219ece3e77bf8f1bdcd60eeb95392c497917d (patch) | |
tree | 85009c91e511eca4da676438638841c72024cbd9 | |
parent | dae7d64d3887aed2ebbabfe459ffc5d34bf4fc48 (diff) | |
download | scummvm-rg350-62e219ece3e77bf8f1bdcd60eeb95392c497917d.tar.gz scummvm-rg350-62e219ece3e77bf8f1bdcd60eeb95392c497917d.tar.bz2 scummvm-rg350-62e219ece3e77bf8f1bdcd60eeb95392c497917d.zip |
TTS: Implement default behavior of TTS setters
-rw-r--r-- | common/text-to-speech.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/text-to-speech.h b/common/text-to-speech.h index a1d8a314e6..63ea1a95c0 100644 --- a/common/text-to-speech.h +++ b/common/text-to-speech.h @@ -199,7 +199,7 @@ public: * * @param rate Integer between -100 (slowest) and 100 (fastest) */ - virtual void setRate(int rate) {} + virtual void setRate(int rate) { _ttsState->_rate = rate; } /** * Returns the current speech rate @@ -211,7 +211,7 @@ public: * * @param pitch Integer between -100 (lowest) and 100 (highest) */ - virtual void setPitch(int pitch) {} + virtual void setPitch(int pitch) { _ttsState->_pitch = pitch; } /** * Returns current speech pitch @@ -223,7 +223,7 @@ public: * * @param volume Volume as a percentage (0 means muted, 100 means as loud as possible) */ - virtual void setVolume(unsigned volume) {} + virtual void setVolume(unsigned volume) { _ttsState->_volume = volume; } /** * Returns the current voice volume @@ -239,7 +239,7 @@ public: * because voices are usually language specific and so it is set to some platform * specific default after switching languages. */ - virtual void setLanguage(String language) {} + virtual void setLanguage(String language) { _ttsState->_language = language; } /** * Returns the current speech language |