Write back to GBAThread.audioBuffers if not previously initialized

This commit is contained in:
Jeffrey Pfau 2014-10-17 23:41:03 -07:00
parent 0867325b96
commit 830e6dbda6
1 changed files with 2 additions and 0 deletions

View File

@ -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) {