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:
parent
6cda7696f3
commit
cc0f55e3c4
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@
|
|||
- (AudioChunk *)readAudio {
|
||||
int maxFrames = INT_MAX;
|
||||
|
||||
if(framePosition + maxFrames > trackEnd)
|
||||
if(framePosition + maxFrames >= trackEnd)
|
||||
maxFrames = (int)(trackEnd - framePosition);
|
||||
|
||||
if(!maxFrames) {
|
||||
|
|
Loading…
Reference in a new issue