APL: Stop on the correct sample

This should stop before the specified end point, not one sample later.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2023-07-21 00:19:52 -07:00
parent dd7340d6d5
commit c3070e5f39
No known key found for this signature in database

View file

@ -113,7 +113,7 @@
- (AudioChunk *)readAudio {
int maxFrames = INT_MAX;
if(framePosition + maxFrames > trackEnd)
if(framePosition + maxFrames >= trackEnd)
maxFrames = (int)(trackEnd - framePosition);
if(!maxFrames) {