Actually respect the no sound output config variable

This commit is contained in:
nattthebear 2020-06-06 12:21:31 -04:00
parent 04223d2c81
commit b4517d8e0d
1 changed files with 17 additions and 14 deletions

View File

@ -21,6 +21,8 @@ namespace BizHawk.Client.EmuHawk
private IBufferedSoundProvider _bufferedProvider; // One of the preceding buffers, or null if no source is set
public Sound(IntPtr mainWindowHandle)
{
if (Global.Config.SoundOutputMethod != ESoundOutputMethod.Dummy)
{
if (OSTailoredCode.IsUnixHost)
{
@ -40,6 +42,7 @@ namespace BizHawk.Client.EmuHawk
if (_outputDevice == null)
_outputDevice = new DummySoundOutput(this);
}
}
/// <summary>
/// The maximum number of milliseconds the sound output buffer can go below full before causing a noticeable sound interruption.