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)

This commit is contained in:
zeromus 2012-10-01 04:15:21 +00:00
parent 2e70656dde
commit 2b1e04997c
1 changed files with 8 additions and 2 deletions

View File

@ -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();