TTS: Move popState to the base class
This commit is contained in:
parent
d31ffb676a
commit
7c78912931
6 changed files with 20 additions and 40 deletions
|
@ -258,22 +258,6 @@ void LinuxTextToSpeechManager::updateVoices() {
|
|||
|
||||
}
|
||||
|
||||
bool LinuxTextToSpeechManager::popState() {
|
||||
if (_ttsState->_next == nullptr)
|
||||
return true;
|
||||
|
||||
Common::TTSState *oldState = _ttsState;
|
||||
_ttsState = _ttsState->_next;
|
||||
|
||||
delete oldState;
|
||||
|
||||
setLanguage(_ttsState->_language);
|
||||
setPitch(_ttsState->_pitch);
|
||||
setVolume(_ttsState->_volume);
|
||||
setRate(_ttsState->_rate);
|
||||
return false;
|
||||
}
|
||||
|
||||
void LinuxTextToSpeechManager::freeVoiceData(void *data) {
|
||||
free(data);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue