qcc304x笔记之提示音配置(六)
生活随笔
收集整理的這篇文章主要介紹了
qcc304x笔记之提示音配置(六)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
代碼邏輯分析
(注:由于SDK在持續更新,所以有些接口可能會有些變化,所以僅供參考)
/*處理來自系統和內部的消息*/ uiPrompts_HandleMessage/*從earbud_ui_prompts_table匹配當前事件是否設置了提示音*/uiPrompts_GetPromptIndexFromMappingTable/*提示音播放任務調度*/uiPrompts_SchedulePromptPlayuiPrompts_PlayPromptappKymeraPromptPlay/*通知對端同步播放提示音*/ Ui_RaiseUiEvent(ui_indication_type_audio_prompt, prompt_index, time_to_play)sniff_ui_event_funcptr->peerUi_ForwardToPeer()peerUi_ForwardUiEventToSecondaryappPeerSigMarshalledMsgChannelTx/*由對端請求同步播放提示音*/ peerUi_HandleMarshalledMsgChannelRxIndpeerUi_InjectUiEventUi_NotifyUiEventui_indication_type_audio_promptUiPrompts_NotifyUiIndicationuiPrompts_PlayPromptappKymeraPromptPlay配置提示音
首先我們打開earbud_prompts_config_table.c文件
總結
以上是生活随笔為你收集整理的qcc304x笔记之提示音配置(六)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 提升团队60%的效能的接口利器,前后端、
- 下一篇: Win10 某个移动硬盘不自动分配盘符