GBA Audio: Process multiple audio events at once, if necessary
Jeffrey Pfau jeffrey@endrift.com
Tue, 11 Aug 2015 21:12:59 -0700
2 files changed,
2 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -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.c
→
src/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) {