From 2b1e04997cd5d56bc95663fb14feb949f73fd9f0 Mon Sep 17 00:00:00 2001 From: zeromus Date: Mon, 1 Oct 2012 04:15:21 +0000 Subject: [PATCH] snes-try more accuracy in the wallclock-sync to fix audio hiccups. we really, really need fancy systems to sync to audio or do proper vsync (and rewire the snes resampler to forcibly adjust to a 60hz display rate) --- .../Consoles/Nintendo/SNES/LibsnesCore.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs b/BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs index c8c018be70..5d87343448 100644 --- a/BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs +++ b/BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs @@ -414,10 +414,16 @@ namespace BizHawk.Emulation.Consoles.Nintendo.SNES } if (LibsnesDll.snes_get_region() == LibsnesDll.SNES_REGION.NTSC) - CoreOutputComm.VsyncNum = 60; + { + //similar to what aviout reports from snes9x and seems logical from bsnes first principles. bsnes uses that numerator (ntsc master clockrate) for sure. + CoreOutputComm.VsyncNum = 21477272; + CoreOutputComm.VsyncDen = 4 * 341 * 262; + } else + { CoreOutputComm.VsyncNum = 50; - CoreOutputComm.VsyncDen = 1; + CoreOutputComm.VsyncDen = 1; + } LibsnesDll.snes_power();