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

This commit is contained in:
Christopher Snowhill 2022-01-12 21:53:58 -08:00
parent 5fef62dd03
commit b0f5a37e85

View file

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