From 013a8f75f3047f2e87fb81a1bd46c960908ee5f9 Mon Sep 17 00:00:00 2001 From: tomty89 Date: Fri, 26 Jan 2018 14:11:55 +0800 Subject: ao_opensles: bump device buffer size to 200ms While the soft buffer size is already by default 200ms, it is not enough to guarantee dropout-free playback on Bluetooth audio. Bumping the device buffer size to the same value seems to suffice. --- audio/out/ao_opensles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/out/ao_opensles.c b/audio/out/ao_opensles.c index e92b530938..28b5d748c8 100644 --- a/audio/out/ao_opensles.c +++ b/audio/out/ao_opensles.c @@ -101,7 +101,7 @@ static void buffer_callback(SLBufferQueueItf buffer_queue, void *context) pthread_mutex_unlock(&p->buffer_lock); } -#define DEFAULT_BUFFER_SIZE_MS 50 +#define DEFAULT_BUFFER_SIZE_MS 200 #define CHK(stmt) \ { \ -- cgit v1.2.3