summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortomty89 <tom.ty89@gmail.com>2018-01-26 14:11:55 +0800
committerJan Ekström <jeebjp@gmail.com>2018-03-07 01:40:05 +0200
commit013a8f75f3047f2e87fb81a1bd46c960908ee5f9 (patch)
tree7b19282b314f27d1effbd9d30a827fdadf00d9fc
parent0a9ab1b076fa43cfbdfa7aee01d723fe400396fd (diff)
downloadmpv-013a8f75f3047f2e87fb81a1bd46c960908ee5f9.tar.bz2
mpv-013a8f75f3047f2e87fb81a1bd46c960908ee5f9.tar.xz
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.
-rw-r--r--audio/out/ao_opensles.c2
1 files changed, 1 insertions, 1 deletions
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) \
{ \