mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-08-06 07:25:14 +00:00
Just use the workingBytes for bytes_queued calculation
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user