all repos — mgba @ 548793e551129f09a6c410d21d592a88ace852bf

mGBA Game Boy Advance Emulator

Remove audio processing loop now that there is an event processing loop
Jeffrey Pfau jeffrey@endrift.com
Tue, 08 Jul 2014 22:00:53 -0700
commit

548793e551129f09a6c410d21d592a88ace852bf

parent

83e16d56c05f2e7714c29b52f50a8b943b027f27

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

jump to
M src/gba/gba-audio.csrc/gba/gba-audio.c

@@ -65,7 +65,7 @@

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