Fix switch case

This commit is contained in:
cam900 2022-08-27 18:58:49 +09:00
parent 745837c41d
commit 5d3cecfea6

View file

@ -66,6 +66,7 @@ void DivPlatformPCMDAC::acquire(short* bufL, short* bufR, size_t start, size_t l
chan.audPos=s->getLoopEndPosition()-1-(s->getLoopStartPosition()-chan.audPos); chan.audPos=s->getLoopEndPosition()-1-(s->getLoopStartPosition()-chan.audPos);
chan.audDir=true; chan.audDir=true;
} }
break;
default: default:
if (chan.audPos<0) { if (chan.audPos<0) {
chan.sample=-1; chan.sample=-1;
@ -90,6 +91,7 @@ void DivPlatformPCMDAC::acquire(short* bufL, short* bufR, size_t start, size_t l
chan.audPos=s->getLoopEndPosition()-1-(s->getLoopEndPosition()-1-chan.audPos); chan.audPos=s->getLoopEndPosition()-1-(s->getLoopEndPosition()-1-chan.audPos);
chan.audDir=true; chan.audDir=true;
} }
break;
default: default:
if (chan.audPos>=s->getEndPosition()) { if (chan.audPos>=s->getEndPosition()) {
chan.sample=-1; chan.sample=-1;