all repos — mgba @ 3552750768616043ab308d7e11c4a358094cfb79

mGBA Game Boy Advance Emulator

GBA Audio: Only increase channel 4 interval
Vicki Pfau vi@endrift.com
Thu, 02 Jan 2020 18:37:17 -0800
commit

3552750768616043ab308d7e11c4a358094cfb79

parent

ad870aa26b872f3ccf3ec535bc0b674fa067f8b3

1 files changed, 4 insertions(+), 2 deletions(-)

jump to
M src/gb/audio.csrc/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) {