mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-06-19 03:08:01 +00:00
Use DeviceSpecifier instead of AllDevicesSpecifier when enumerating audio devices.
This commit is contained in:
parent
baf59abb6e
commit
aa6994ac33
|
@ -169,7 +169,7 @@ namespace OpenTK.Audio
|
||||||
if (available_devices.Count == 0)
|
if (available_devices.Count == 0)
|
||||||
{
|
{
|
||||||
if (Alc.IsExtensionPresent(IntPtr.Zero, "ALC_ENUMERATION_EXT"))
|
if (Alc.IsExtensionPresent(IntPtr.Zero, "ALC_ENUMERATION_EXT"))
|
||||||
available_devices.AddRange(Alc.GetString(IntPtr.Zero, AlcGetStringList.AllDevicesSpecifier));
|
available_devices.AddRange(Alc.GetString(IntPtr.Zero, AlcGetStringList.DeviceSpecifier));
|
||||||
else
|
else
|
||||||
Debug.Print("Device enumeration extension not available. Failed to enumerate devices.");
|
Debug.Print("Device enumeration extension not available. Failed to enumerate devices.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue