When using dummy sound output, don't crash on exit
My bad -- I had meant to move this outside the if
This commit is contained in:
parent
b4517d8e0d
commit
4a4c59fcda
|
@ -38,11 +38,10 @@ namespace BizHawk.Client.EmuHawk
|
||||||
if (Global.Config.SoundOutputMethod == ESoundOutputMethod.XAudio2)
|
if (Global.Config.SoundOutputMethod == ESoundOutputMethod.XAudio2)
|
||||||
_outputDevice = new XAudio2SoundOutput(this);
|
_outputDevice = new XAudio2SoundOutput(this);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (_outputDevice == null)
|
if (_outputDevice == null)
|
||||||
_outputDevice = new DummySoundOutput(this);
|
_outputDevice = new DummySoundOutput(this);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The maximum number of milliseconds the sound output buffer can go below full before causing a noticeable sound interruption.
|
/// The maximum number of milliseconds the sound output buffer can go below full before causing a noticeable sound interruption.
|
||||||
|
|
Loading…
Reference in New Issue