ft2-clone

Fasttracker 2 clone
Log | Files | Refs | README | LICENSE

commit 50b0c179aecbee4190cac47c96eefed7e281c99e
parent 63e55107273de146a39915a0196c430bbf72b1e0
Author: Olav Sørensen <olav.sorensen@live.no>
Date:   Mon, 13 Dec 2021 12:20:12 +0100

Fix offset bug when using Cut (or CTRL+X) on 16-bit samples

Diffstat:
Msrc/ft2_sample_ed.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ft2_sample_ed.c b/src/ft2_sample_ed.c @@ -1896,7 +1896,7 @@ static bool cutRange(bool cropMode, int32_t r1, int32_t r2) return false; } - memcpy(smpCopyBuff, &s->dataPtr[r1], (r2-r1) << sample16Bit); + memcpy(smpCopyBuff, &s->dataPtr[r1 << sample16Bit], (r2-r1) << sample16Bit); smpCopyBits = sample16Bit ? 16 : 8; } }