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 6cda7696f3
commit cc0f55e3c4
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) {