Just use the workingBytes for bytes_queued calculation

This commit is contained in:
Aaron Culliney
2015-07-05 12:57:24 -07:00
parent ddefceaf08
commit e04f5c046c

View File

@@ -185,12 +185,7 @@ static long SLGetPosition(AudioBuffer_s *_this, OUTPARM unsigned long *bytes_que
}
assert(workingBytes <= voice->bufferSize);
if (workingBytes > voice->submitSize) {
*bytes_queued = workingBytes - voice->submitSize;
} else {
*bytes_queued = 0;
}
*bytes_queued = workingBytes;
} while (0);
return err;