From 7bb116a33b2fc2437057885e3b8b14f89ee9e946 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sat, 17 Sep 2016 20:59:58 -0700 Subject: [PATCH] Added a fix so that a rapid succession of sub-10 second files do not get queued up until the player eventually crashes. --- Audio/AudioPlayer.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Audio/AudioPlayer.m b/Audio/AudioPlayer.m index f2152004a..064812812 100644 --- a/Audio/AudioPlayer.m +++ b/Audio/AudioPlayer.m @@ -246,6 +246,11 @@ return YES; } } + + if ([chainQueue count] >= 5) + { + return YES; + } BufferChain *newChain = nil;