From f65d5965a52dc346d332c902c418003440f1414b Mon Sep 17 00:00:00 2001 From: luigi__ Date: Thu, 12 Nov 2009 21:07:06 +0000 Subject: [PATCH] SPU: correct the framerate to 59.8261 instead of 60. Thank you zeromus ;) --- desmume/src/SPU.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/SPU.cpp b/desmume/src/SPU.cpp index b6340d1aa..7f12522c8 100644 --- a/desmume/src/SPU.cpp +++ b/desmume/src/SPU.cpp @@ -867,7 +867,7 @@ static void SPU_MixAudio(bool actuallyMix, SPU_struct *SPU, int length) //emulates one hline of the cpu core. //this will produce a variable number of samples, calculated to keep a 44100hz output //in sync with the emulator framerate -static const double samples_per_hline = (DESMUME_SAMPLE_RATE / 60.0f) / 263.0f; +static const double samples_per_hline = (DESMUME_SAMPLE_RATE / 59.8261f) / 263.0f; int spu_core_samples = 0; void SPU_Emulate_core() { @@ -879,7 +879,7 @@ void SPU_Emulate_core() bool mix = driver->AVI_IsRecording() || driver->WAV_IsRecording() || synchronize; SPU_MixAudio(mix,SPU_core,spu_core_samples); - if(synchronize && SPU_user) + if(synchronize) synchronizer->enqueue_samples(SPU_core->outbuf, spu_core_samples); }