From 7a291d46e4d535e4c17bd7c6e2b637fa26d24ff3 Mon Sep 17 00:00:00 2001 From: Matthew Xie Date: Thu, 25 Oct 2012 18:25:49 -0700 Subject: Increase media task encoded buffer queue throw-away threshold from 12 to 24 To manage temporary congestion in lower layers, the max amount of queued up audio is raised from 240ms to 480ms bug 7394193 Change-Id: Ibee000b83c0f608120537f21323a069caa4f952d --- btif/src/btif_media_task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'btif') diff --git a/btif/src/btif_media_task.c b/btif/src/btif_media_task.c index 6975154..ecd3825 100755 --- a/btif/src/btif_media_task.c +++ b/btif/src/btif_media_task.c @@ -176,7 +176,7 @@ static UINT32 a2dp_media_task_stack[(A2DP_MEDIA_TASK_STACK_SIZE + 3) / 4]; /* fixme -- define this in pcm time instead of buffer count */ /* fixme -- tune optimal value. For now set a large buffer capacity */ -#define MAX_OUTPUT_BUFFER_QUEUE_SZ 12 +#define MAX_OUTPUT_BUFFER_QUEUE_SZ 24 /* trigger rate adjustment if deviation is more than threshold */ #define BTIF_RA_OFFSET_TRIGGER_US 3000 -- cgit v1.1