From b71f06aa045fc1c015558d5269939dba770fc832 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 4 Dec 2019 18:58:36 -0800 Subject: [PATCH] Change audio buffer duration back to 80 ms for now --- Limelight/Stream/Connection.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Limelight/Stream/Connection.m b/Limelight/Stream/Connection.m index 71bd90ef..fd401b66 100644 --- a/Limelight/Stream/Connection.m +++ b/Limelight/Stream/Connection.m @@ -33,7 +33,10 @@ static id _callbacks; #define OUTPUT_BUS 0 -#define CIRCULAR_BUFFER_DURATION 60 +// My iPod touch 5th Generation seems to really require 80 ms +// of buffering to deliver glitch-free playback :( +// FIXME: Maybe we can use a smaller buffer on more modern iOS versions? +#define CIRCULAR_BUFFER_DURATION 80 static int audioBufferEntries; static int audioBufferWriteIndex;