From c5e9f515234506eddc99be6683cf0fd6580ced95 Mon Sep 17 00:00:00 2001 From: zeromus Date: Wed, 21 Oct 2009 07:53:22 +0000 Subject: [PATCH] fix a bit of a boneheaded performance-slaying bug in spu synch mode --- desmume/src/SPU.cpp | 3 +-- desmume/src/windows/main.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/desmume/src/SPU.cpp b/desmume/src/SPU.cpp index c07a693d8..57be86f86 100644 --- a/desmume/src/SPU.cpp +++ b/desmume/src/SPU.cpp @@ -1340,8 +1340,7 @@ void SPU_Emulate_user(bool mix) if(synchmode == ESynchMode_Synchronous) { int done = synchronizer->output_samples(SPU_user->outbuf, audiosize); - for(int j=0;jUpdateAudio(&SPU_user->outbuf[j*2],1); + SNDCore->UpdateAudio(SPU_user->outbuf,done); } else { diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index 5577b56e3..b2c00f5bd 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -1203,7 +1203,7 @@ static void StepRunLoop_Core() { Lock lock; NDS_exec(); - SPU_Emulate_user(); + //SPU_Emulate_user(); win_sound_samplecounter = 735; } inFrameBoundary = true;