Tweak threshold for sound stuff.

This commit is contained in:
jdpurcell 2015-01-25 06:10:00 +00:00
parent e69dcfc167
commit 9b9ef1de0c
1 changed files with 4 additions and 1 deletions

View File

@ -124,7 +124,10 @@ namespace BizHawk.Client.EmuHawk
_lastWriteTime = 0;
_lastWriteCursor = 0;
int minBufferFullnessSamples = MillisecondsToSamples(Global.Config.SoundBufferSizeMs >= 80 ? 55 : 35);
int minBufferFullnessSamples = MillisecondsToSamples(
Global.Config.SoundBufferSizeMs < 80 ? 35 :
Global.Config.SoundBufferSizeMs < 100 ? 45 :
55);
_outputProvider = new SoundOutputProvider();
_outputProvider.MaxSamplesDeficit = BufferSizeSamples - minBufferFullnessSamples;
_outputProvider.BaseSoundProvider = _syncSoundProvider;