From 830e6dbda6391681f4079a0f6494550bf1052d4b Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Fri, 17 Oct 2014 23:41:03 -0700 Subject: [PATCH] Write back to GBAThread.audioBuffers if not previously initialized --- src/gba/gba-thread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gba/gba-thread.c b/src/gba/gba-thread.c index 04e168c27..4dd970933 100644 --- a/src/gba/gba-thread.c +++ b/src/gba/gba-thread.c @@ -126,6 +126,8 @@ static THREAD_ENTRY _GBAThreadRun(void* context) { if (threadContext->audioBuffers) { GBAAudioResizeBuffer(&gba.audio, threadContext->audioBuffers); + } else { + threadContext->audioBuffers = GBA_AUDIO_SAMPLES; } if (threadContext->renderer) {