commit 92209522e99043d9ebb480aa117ea76574acd705
parent 724a4caff868393ba0c0ba520033470824405c0e
Author: Olav Sørensen <olav.sorensen@live.no>
Date: Wed, 12 Feb 2020 23:22:03 +0100
STK/UST loop fix
Divide loopstart by two on all STK/UST modules instead of very specific ones.
Diffstat:
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/ft2_module_loader.c b/src/ft2_module_loader.c
@@ -656,11 +656,8 @@ static bool loadMusicMOD(FILE *f, uint32_t fileLength, bool fromExternalThread)
if (s->repL < 2)
s->repL = 2;
- /* Ultimate SoundTracker before version 2.5 had loopStart in bytes, not words
- ** XXX: This has to be verified... It's possible that it was before that,
- ** and that this breaks some modules.
- */
- if (mightBeSTK && !lateSTKVerFlag)
+ // in The Ultimate SoundTracker, sample loop start is in bytes, not words
+ if (mightBeSTK)
s->repS /= 2;
// fix for poorly converted STK (< v2.5) -> PT/NT modules (FIXME: Worth keeping or not?)