GBA Audio: Only increase channel 4 interval
Vicki Pfau vi@endrift.com
Thu, 02 Jan 2020 18:37:17 -0800
1 files changed,
4 insertions(+),
2 deletions(-)
jump to
M
src/gb/audio.c
→
src/gb/audio.c
@@ -944,8 +944,10 @@ now = mTimingCurrentTime(timing) - cyclesLate;
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) {