implement sample loop on the rest of systems

This commit is contained in:
tildearrow 2022-01-20 02:46:28 -05:00
parent 3954a23f3e
commit 4ee17d35cd
4 changed files with 27 additions and 5 deletions

View file

@ -26,7 +26,11 @@ void DivPlatformGenesis::acquire(short* bufL, short* bufR, size_t start, size_t
}
}
if (dacPos>=s->rendLength) {
dacSample=-1;
if (s->loopStart>=0 && s->loopStart<=(int)s->rendLength) {
dacPos=s->loopStart;
} else {
dacSample=-1;
}
}
dacPeriod+=dacRate;
}