Cog Audio: Only proceed to the next track when the current track has actually finished

CQTexperiment
Christopher Snowhill 2022-01-12 21:53:58 -08:00
parent 5fef62dd03
commit b0f5a37e85
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@
n = [super readData:ptr amount:amount];
amountPlayed += n;
if (endOfStream == YES)
if (endOfStream == YES && !n)
{
amountPlayed = 0;
[controller endOfInputPlayed]; //Updates shouldContinue appropriately?