This commit is contained in:
cam900 2022-08-27 17:28:08 +09:00
parent 54dbd0690c
commit 22211a4ef0

View file

@ -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;