Cog Audio: Only proceed to the next track when the current track has actually finished
This commit is contained in:
parent
5fef62dd03
commit
b0f5a37e85
1 changed files with 1 additions and 1 deletions
|
@ -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?
|
||||||
|
|
Loading…
Reference in a new issue