From 2a2ce9891c664072b77b0de5a432be0897fd47bf Mon Sep 17 00:00:00 2001 From: goyuken Date: Tue, 2 Oct 2012 01:05:29 +0000 Subject: [PATCH] round up number of samples requested in audio throttle mode to work around quirk in vecna metaspu. a better solution will be coming, sometime --- BizHawk.MultiClient/Sound.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BizHawk.MultiClient/Sound.cs b/BizHawk.MultiClient/Sound.cs index 65d1ed13d2..b14fa33356 100644 --- a/BizHawk.MultiClient/Sound.cs +++ b/BizHawk.MultiClient/Sound.cs @@ -135,7 +135,7 @@ namespace BizHawk.MultiClient if (Global.Config.SoundThrottle) { if (DSoundBuffer == null) return; // can cause SNDDXGetAudioSpace() = 0 - int samplesWanted = 2 * (int) (44100.0 / Global.Emulator.CoreOutputComm.VsyncRate); + int samplesWanted = 2 * (int) (0.8 + 44100.0 / Global.Emulator.CoreOutputComm.VsyncRate); while (samplesNeeded < samplesWanted) {