_AccessibilityTtsPlayer::_AccessibilityTtsPlayer(_AccessibilityManager& manager)
: __initialized(false)
+ , __activated(false)
, __ttsHandle(0)
, __localeIdx(-1)
, __speed(TTS_SPEED_AUTO)
SysTryLog(NID_UI, ttsError == TTS_ERROR_NONE, "[%s] Failed to stop.", GetEngineErrorMessage(ttsError));
}
- if (__initialized)
+ if (__activated)
{
ttsError = tts_unprepare(__ttsHandle);
SysTryLog(NID_UI, ttsError == TTS_ERROR_NONE, "[%s] Failed to unprepare.", GetEngineErrorMessage(ttsError));
ttsError = tts_prepare(__ttsHandle);
SysTryReturnResult(NID_UI, ttsError == TTS_ERROR_NONE, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] The memory is insufficient.");
+ __activated = true;
return E_SUCCESS;
}