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;