From: Ji-hoon Lee Date: Thu, 31 Oct 2019 11:16:18 +0000 (+0900) Subject: Finalize audio data when voice key is in pressed state X-Git-Tag: submit/tizen_5.5/20191105.063733^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11a6ddfc6830fce8f1850c0dbab91a0dc614286e;p=platform%2Fcore%2Fuifw%2Fmulti-assistant-service.git Finalize audio data when voice key is in pressed state When audio is finalized after voice key variable is set to false, the FINISH audio event will be fed to wakeup engines where the event itself is not useful for wakeup engines. Change-Id: Ifdd41be5e76a84b779d697edefd57203ac2bfe5a --- diff --git a/plugins/wakeup-manager/src/wakeup_manager.cpp b/plugins/wakeup-manager/src/wakeup_manager.cpp index 9e16d36..1ac4694 100644 --- a/plugins/wakeup-manager/src/wakeup_manager.cpp +++ b/plugins/wakeup-manager/src/wakeup_manager.cpp @@ -491,8 +491,8 @@ bool CWakeupManager::process_event(ma_plugin_event_e event, void* data, int len) } } else if (MA_PLUGIN_EVENT_VOICE_KEY_RELEASED_AFTER_PUSH == event) { if (mVoiceKeyPressed != false) { - mVoiceKeyPressed = false; mAudioManager.finalize_audio_data(); + mVoiceKeyPressed = false; if (mWakeupEngineManager.get_audio_data_required()) { /* Restart recorder thread using appropriate recording device */