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