all repos — mgba @ 607c7ec890086a3539d48285f415830b63f09bd4

mGBA Game Boy Advance Emulator

Wii: Fix silly mistake in audio code
Jeffrey Pfau jeffrey@endrift.com
Thu, 06 Aug 2015 00:33:38 -0700
commit

607c7ec890086a3539d48285f415830b63f09bd4

parent

dabd72ac13c0024b20cf18b050b25a25b385e4a0

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

jump to
M src/platform/wii/main.csrc/platform/wii/main.c

@@ -314,8 +314,8 @@ static void _audioDMA(void) {

if (!audioBufferSize) { return; } - currentAudioBuffer = !currentAudioBuffer; DCFlushRange(audioBuffer[currentAudioBuffer], audioBufferSize * sizeof(struct GBAStereoSample)); AUDIO_InitDMA((u32) audioBuffer[currentAudioBuffer], audioBufferSize * sizeof(struct GBAStereoSample)); + currentAudioBuffer = !currentAudioBuffer; audioBufferSize = 0; }