mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-09 15:20:33 +00:00
Updated Debug message on available device enumeration.
This commit is contained in:
parent
f7a059d258
commit
bf88111e95
|
@ -169,9 +169,9 @@ 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.AllDevicesSpecifier));
|
||||||
}
|
else
|
||||||
|
Debug.Print("Device enumeration extension not available. Failed to enumerate devices.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -207,7 +207,6 @@ namespace OpenTK.Audio
|
||||||
if (refresh < 0) throw new ArgumentOutOfRangeException("refresh", refresh, "Should be greater than zero.");
|
if (refresh < 0) throw new ArgumentOutOfRangeException("refresh", refresh, "Should be greater than zero.");
|
||||||
if (maxEfxSends < 0) throw new ArgumentOutOfRangeException("maxEfxSends", maxEfxSends, "Should be greater than zero.");
|
if (maxEfxSends < 0) throw new ArgumentOutOfRangeException("maxEfxSends", maxEfxSends, "Should be greater than zero.");
|
||||||
//if (available_devices.Count == 0) throw new NotSupportedException("No audio hardware is available.");
|
//if (available_devices.Count == 0) throw new NotSupportedException("No audio hardware is available.");
|
||||||
if (available_contexts.Count == 0) Debug.Print("Failed to enumerate devices.");
|
|
||||||
|
|
||||||
device_handle = Alc.OpenDevice(device);
|
device_handle = Alc.OpenDevice(device);
|
||||||
if (device_handle == IntPtr.Zero)
|
if (device_handle == IntPtr.Zero)
|
||||||
|
|
Loading…
Reference in a new issue