From 61ae4198584c630e47f7f118f22e859d5cd07121 Mon Sep 17 00:00:00 2001 From: rogerman Date: Sun, 19 Aug 2012 07:13:57 +0000 Subject: [PATCH] SPU: - Fix r4306 regression that caused audio recording to fail if the user was using Dual SPU Synch/Asynch mode. --- desmume/src/SPU.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/desmume/src/SPU.cpp b/desmume/src/SPU.cpp index 8a21f96e2..f2921b104 100644 --- a/desmume/src/SPU.cpp +++ b/desmume/src/SPU.cpp @@ -1399,7 +1399,10 @@ void SPU_Emulate_core() // We don't need to mix audio for Dual Synch/Asynch mode since we do this // later in SPU_Emulate_user(). Disable mixing here to speed up processing. - if (synchmode == ESynchMode_DualSynchAsynch) + // However, recording still needs to mix the audio, so make sure we're also + // not recording before we disable mixing. + if ( synchmode == ESynchMode_DualSynchAsynch && + !(driver->AVI_IsRecording() || driver->WAV_IsRecording()) ) { needToMix = false; }