source 发射解决连接airpod无声的问题

本文档详细介绍了通过source发射解决AirPods连接后无声的问题,涉及源代码变更,包括audio和bt模块的更新,以及如何控制媒体包流向A2DP接收端的流程,以确保在接收到AVDTP响应后再开始媒体流传输。
摘要由CSDN通过智能技术生成

source 发射解决连接airpod无声的问题

 adk/src/domains/audio/kymera/kymera.h              | 17 ++++++++++++++

 adk/src/domains/audio/kymera/kymera_a2dp_source.c  | 24 +++++++++++++++++++-

 adk/src/domains/bt/av/av.c                         | 12 ++++++++++

 adk/src/domains/bt/av/av.h                         | 16 ++++++++-----

 .../bt/profiles/a2dp_profile/a2dp_profile.c        |  4 ++--

 source_apps/usb_dongle/src/usb_dongle_a2dp.c       | 26 +++++++++++++++++-----

 6 files changed, 84 insertions(+), 15 deletions(-)

diff --git a/adk/src/domains/audio/kymera/kymera.h b/adk/src/domains/audio/kymera/kymera.h

index 668611b0..a95920b7 100755

--- a/adk/src/domains/audio/kymera/kymera.h

+++ b/adk/src/domains/audio/kymera/kymera.h

@@ -1083,6 +1083,23 @@ void Kymera_ScoPollCvcSend3MicModeOfOperation(void);

 #endif /*INCLUDE_CVC_DEMO*/

 #if defined(INCLUDE_A2DP_USB_SOURCE) || defined(INCLUDE_A2DP_ANALOG_SOURCE)

+

+/*! \brief Control the flow of media packets to the remote A2DP sink.

+

+    Newly created A2DP Source chains will default to disposing of all media

+    packets produced by the encoder, until streaming is explicitly enabled by

+    calling this function. This is to allow the start of the media stream to be

+    synchronised with the receipt of an AVDTP Start Response from the sink, to

+    ensure that we don't begin sending any media packets over the air until our

+    AVDTP Start Request has actually been acknowledged and accepted.

+

+    \param enable TRUE to stop disposing packets and start streaming them to the sink.



  • 7
    点赞
  • 21
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值