feat(input): play sound for muyu strike

This commit is contained in:
chenjintao
2026-08-18 14:17:02 +08:00
parent d386de2320
commit e0dbcdd273
2 changed files with 6 additions and 0 deletions
@@ -35,6 +35,7 @@
#endif
#define CONTROL_PLANE_PTT_HOLD_STEP_MS 80
#define CONTROL_PLANE_MUYU_PROMPT_FILE "muyu.opus"
#ifndef CONFIG_TQ_LOCAL_TASK_CORE
#define CONFIG_TQ_LOCAL_TASK_CORE 1
@@ -195,6 +196,11 @@ static void control_plane_dispatch_key_event(const control_plane_key_event_t *ev
if (expr_err != ESP_OK && expr_err != ESP_ERR_INVALID_STATE) {
ESP_LOGW(TAG, "PTT double-click expression failed: %s", esp_err_to_name(expr_err));
}
esp_err_t prompt_err =
domain_runtime_behavior_play_prompt_file(CONTROL_PLANE_MUYU_PROMPT_FILE);
if (prompt_err != ESP_OK) {
ESP_LOGW(TAG, "PTT double-click muyu prompt failed: %s", esp_err_to_name(prompt_err));
}
break;
}
Binary file not shown.