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
}
} 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 */