From 21cb7226a2b9c8514f875f0caf7e6619539e85c6 Mon Sep 17 00:00:00 2001 From: Tian Hao Date: Fri, 1 Jun 2018 16:51:23 +0800 Subject: [PATCH] component/bt : enlarge the A2DP SINK FRAME QUEUE SIZE to make A2DP more fluent --- components/bt/bluedroid/btc/profile/std/a2dp/btc_a2dp_sink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/bt/bluedroid/btc/profile/std/a2dp/btc_a2dp_sink.c b/components/bt/bluedroid/btc/profile/std/a2dp/btc_a2dp_sink.c index 2722b3e9bd..7457555685 100644 --- a/components/bt/bluedroid/btc/profile/std/a2dp/btc_a2dp_sink.c +++ b/components/bt/bluedroid/btc/profile/std/a2dp/btc_a2dp_sink.c @@ -87,8 +87,8 @@ enum { but due to link flow control or thread preemption in lower layers we might need to temporarily buffer up data */ -/* 5 frames is equivalent to 6.89*5*2.9 ~= 100 ms @ 44.1 khz, 20 ms mediatick */ -#define MAX_OUTPUT_A2DP_SNK_FRAME_QUEUE_SZ (5) +/* 18 frames is equivalent to 6.89*18*2.9 ~= 360 ms @ 44.1 khz, 20 ms mediatick */ +#define MAX_OUTPUT_A2DP_SNK_FRAME_QUEUE_SZ (18) typedef struct { UINT16 num_frames_to_be_processed;