mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-13 16:55:27 +00:00
Fix for a possible NRE exception when constructing a new AudioContext.
This commit is contained in:
parent
a8353d7e33
commit
cea26e7dbf
|
@ -52,7 +52,7 @@ namespace OpenTK.Audio
|
||||||
|
|
||||||
/// <summary>Constructs a new AudioContext, using the default audio device.</summary>
|
/// <summary>Constructs a new AudioContext, using the default audio device.</summary>
|
||||||
/// <exception cref="NotSupportedException">Occurs when no audio devices are available.</exception>
|
/// <exception cref="NotSupportedException">Occurs when no audio devices are available.</exception>
|
||||||
public AudioContext() : this(available_devices[0], 0, 0, false, 0) { }
|
public AudioContext() : this(available_devices.Count > 0 ? available_devices[0] : "", 0, 0, false, 0) { }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue