ref: 50b0c179aecbee4190cac47c96eefed7e281c99e
parent: 63e55107273de146a39915a0196c430bbf72b1e0
author: Olav Sørensen <olav.sorensen@live.no>
date: Mon Dec 13 07:20:39 EST 2021
Fix offset bug when using Cut (or CTRL+X) on 16-bit samples
--- a/src/ft2_sample_ed.c
+++ b/src/ft2_sample_ed.c
@@ -1896,7 +1896,7 @@
return false;
}
- memcpy(smpCopyBuff, &s->dataPtr[r1], (r2-r1) << sample16Bit);
+ memcpy(smpCopyBuff, &s->dataPtr[r1 << sample16Bit], (r2-r1) << sample16Bit);
smpCopyBits = sample16Bit ? 16 : 8;
}
}