]> granicus.if.org Git - esp-idf/commitdiff
component/bt : enlarge the A2DP SINK FRAME QUEUE SIZE to make A2DP more fluent
authorTian Hao <tianhao@espressif.com>
Fri, 1 Jun 2018 08:51:23 +0000 (16:51 +0800)
committerTian Hao <tianhao@espressif.com>
Fri, 1 Jun 2018 08:51:23 +0000 (16:51 +0800)
components/bt/bluedroid/btc/profile/std/a2dp/btc_a2dp_sink.c

index 2722b3e9bddce369ac10825b17b49b1c9a011da2..7457555685d0227ba30825dab91ae83b732deba4 100644 (file)
@@ -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;