From 22211a4ef0e72c1cf2773d7bfe04028b42caf387 Mon Sep 17 00:00:00 2001 From: cam900 Date: Sat, 27 Aug 2022 17:28:08 +0900 Subject: [PATCH] Fix loop --- src/engine/engine.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/engine.cpp b/src/engine/engine.cpp index fb37f4238..cee47e41a 100644 --- a/src/engine/engine.cpp +++ b/src/engine/engine.cpp @@ -2764,6 +2764,7 @@ DivSample* DivEngine::sampleFromFile(const char* path) { sample->centerRate=si.samplerate*pow(2.0,pitch/(12.0 * 100.0)); if(inst.loop_count && inst.loops[0].mode >= SF_LOOP_FORWARD) { + sample->loop=true; sample->loopMode=(DivSampleLoopMode)(inst.loops[0].mode-SF_LOOP_FORWARD); sample->loopStart=inst.loops[0].start; sample->loopEnd=inst.loops[0].end;