fix(audio): recover cleanly after barge-in
This commit is contained in:
@@ -187,6 +187,9 @@ static void key_thread_entry(void *parameter)
|
||||
if(ql_rtos_get_systicks() - key_press_mic_time > KEY_LONG_PRESS_3S && power_down_status==0){
|
||||
nfc_tx_click_count = 0;
|
||||
power_down_status = 1;
|
||||
/* Shutdown audio must own the codec. Stop VAD and any
|
||||
* interrupted TTS before queueing the power-off prompt. */
|
||||
stop_player_func();
|
||||
app_play_tips_file(10);
|
||||
power_down_status = 2;
|
||||
//ql_rtos_task_sleep_s(3);
|
||||
|
||||
Reference in New Issue
Block a user