mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-04-29 08:46:31 +00:00
Use DeviceSpecifier instead of AllDevicesSpecifier when enumerating audio devices.
This commit is contained in:
parent
3c7d4e27b0
commit
1f280f0731
|
@ -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