all repos — mgba @ ebfcc70b3d4a6ef57b6ae05f32e912518174ed73

mGBA Game Boy Advance Emulator

GBA Audio: Process multiple audio events at once, if necessary
Jeffrey Pfau jeffrey@endrift.com
Tue, 11 Aug 2015 21:12:59 -0700
commit

ebfcc70b3d4a6ef57b6ae05f32e912518174ed73

parent

b4dec1df53022b8f5993b4cc1028476b4c11160c

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

jump to
M CHANGESCHANGES

@@ -121,6 +121,7 @@ - Qt: Increase usability of key mapper

- Qt: Show checkmark for window sizes - Qt: Set window path to loaded ROM - GBA Memory: Run multiple DMAs in a tight loop if they all occur before present + - GBA Audio: Process multiple audio events at once, if necessary 0.2.1: (2015-05-13) Bugfixes:
M src/gba/audio.csrc/gba/audio.c

@@ -167,7 +167,7 @@

int32_t GBAAudioProcessEvents(struct GBAAudio* audio, int32_t cycles) { audio->nextEvent -= cycles; audio->eventDiff += cycles; - if (audio->nextEvent <= 0) { + while (audio->nextEvent <= 0) { audio->nextEvent = INT_MAX; if (audio->enable) { if (audio->playingCh1 && !audio->ch1.envelope.dead) {