maybe fix possible crash regarding smp loop points

This commit is contained in:
tildearrow 2022-03-21 21:26:36 -05:00
parent 7f36cabb42
commit 322981b021
7 changed files with 8 additions and 8 deletions

View file

@ -97,7 +97,7 @@ void DivPlatformVERA::acquire(short* bufL, short* bufR, size_t start, size_t len
}
chan[16].pcm.pos++;
if (chan[16].pcm.pos>=s->samples) {
if (s->loopStart>=0 && s->loopStart<=(int)s->samples) {
if (s->loopStart>=0 && s->loopStart<(int)s->samples) {
chan[16].pcm.pos=s->loopStart;
} else {
chan[16].pcm.sample=-1;