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
1 changed files with 4 additions and 2 deletions

View File

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