代码逻辑分析
(注:由于SDK在持续更新,所以有些接口可能会有些变化,所以仅供参考)
/*处理来自系统和内部的消息*/
uiPrompts_HandleMessage
/*从earbud_ui_prompts_table匹配当前事件是否设置了提示音*/
uiPrompts_GetPromptIndexFromMappingTable
/*提示音播放任务调度*/
uiPrompts_SchedulePromptPlay
uiPrompts_PlayPrompt
appKymeraPromptPlay
/*通知对端同步播放提示音*/
Ui_RaiseUiEvent(ui_indication_type_audio_prompt, prompt_index, time_to_play)
sniff_ui_event_funcptr->peerUi_ForwardToPeer()
peerUi_ForwardUiEventToSecondary
appPeerSigMarshalledMsgChannelTx
/*由对端请求同步播放提示音*/
peerUi_HandleMarshalledMsgChannelRxInd
peerUi_InjectUiEvent
Ui_NotifyUiEvent
ui_indication_type_audio_prompt
UiPrompts_NotifyUiIndication
uiPromp