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;