mirror of https://github.com/mgba-emu/mgba.git
GBA Audio: Only increase channel 4 interval
This commit is contained in:
parent
ad870aa26b
commit
3552750768
|
@ -944,9 +944,11 @@ 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;
|
||||||
|
if (audio->sampleInterval > next) {
|
||||||
// TODO: Make batching work when descheduled
|
// TODO: Make batching work when descheduled
|
||||||
next = audio->sampleInterval;
|
next = audio->sampleInterval;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (; last < now; last += cycles) {
|
for (; last < now; last += cycles) {
|
||||||
int lsb = ch->lfsr & 1;
|
int lsb = ch->lfsr & 1;
|
||||||
|
|
Loading…
Reference in New Issue