mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-15 17:25:06 +00:00
Fix loop
This commit is contained in:
parent
54dbd0690c
commit
22211a4ef0
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue