round up number of samples requested in audio throttle mode to work around quirk in vecna metaspu. a better solution will be coming, sometime

This commit is contained in:
goyuken 2012-10-02 01:05:29 +00:00
parent 13150961cb
commit 2a2ce9891c
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{