mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-26 03:15:40 +00:00
Fix for a possible NRE exception when constructing a new AudioContext.
This commit is contained in:
parent
582d4fb569
commit
f6c1942407
|
@ -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