mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 17:05:37 +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>
|
||||
/// <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
|
||||
|
||||
|
|
Loading…
Reference in a new issue