ref: 1f54ee34fac0fc161f68e7e159a40773a86e45c3
parent: c3fe209191b7286af98597151ee8fdf2144bc1ee
author: Olav Sørensen <[email protected]>
date: Thu Apr 13 19:36:13 EDT 2023
IFF saving was broken for non-looped samples
--- a/src/pt2_sample_saver.c
+++ b/src/pt2_sample_saver.c
@@ -214,12 +214,12 @@
if (loopStart+loopLength > 2) // loop enabled?
{
- iffWriteUint32(f, loopStart); // oneShotHiSamples
+ iffWriteUint32(f, loopStart); // oneShotHiSamples (loop start when loop is enabled)
iffWriteUint32(f, loopLength); // repeatHiSamples
}
else
{
- iffWriteUint32(f, 0); // oneShotHiSamples
+ iffWriteUint32(f, sampleLength); // oneShotHiSamples (length of sample when no loop)
iffWriteUint32(f, 0); // repeatHiSamples
}