GBA Audio: Only increase channel 4 interval

This commit is contained in:
Vicki Pfau 2020-01-02 18:37:17 -08:00
parent ad870aa26b
commit 3552750768

View File

@ -944,8 +944,10 @@ static void _updateChannel4(struct mTiming* timing, void* user, uint32_t cyclesL
ch->lastEvent = now; ch->lastEvent = now;
now -= last; now -= last;
last = 0; last = 0;
// TODO: Make batching work when descheduled if (audio->sampleInterval > next) {
next = audio->sampleInterval; // TODO: Make batching work when descheduled
next = audio->sampleInterval;
}
} }
for (; last < now; last += cycles) { for (; last < now; last += cycles) {