Skip to content

Commit

Permalink
Fix last audio sample not being played in sample channels
Browse files Browse the repository at this point in the history
  • Loading branch information
gvnnz committed Nov 16, 2024
1 parent 81714e0 commit 621ae23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/channels/sampleChannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ void SampleChannel::loadWave(Wave* w, Frame newBegin, Frame newEnd, Frame newShi
{
shift = newShift == -1 ? 0 : newShift;
begin = newBegin == -1 ? 0 : newBegin;
end = newEnd == -1 ? w->getBuffer().countFrames() - 1 : newEnd;
end = newEnd == -1 ? w->getBuffer().countFrames() : newEnd;
}
}

Expand Down

0 comments on commit 621ae23

Please sign in to comment.