TTS: Move popState to the base class

This commit is contained in:
Jaromir Wysoglad 2019-07-18 23:33:48 +02:00 committed by Filippos Karapetis
parent d31ffb676a
commit 7c78912931
6 changed files with 20 additions and 40 deletions

View file

@ -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);
}