Updated Debug message on available device enumeration.

This commit is contained in:
the_fiddler 2008-01-20 21:05:49 +00:00
parent f7a059d258
commit bf88111e95

View file

@ -169,9 +169,9 @@ namespace OpenTK.Audio
if (available_devices.Count == 0)
{
if (Alc.IsExtensionPresent(IntPtr.Zero, "ALC_ENUMERATION_EXT"))
{
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 (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_contexts.Count == 0) Debug.Print("Failed to enumerate devices.");
device_handle = Alc.OpenDevice(device);
if (device_handle == IntPtr.Zero)