mirror of https://github.com/mgba-emu/mgba.git
Write back to GBAThread.audioBuffers if not previously initialized
This commit is contained in:
parent
0867325b96
commit
830e6dbda6
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue