Esempio n. 1
0
        public static string[] AvailableDevices()
        {
            // Returns all devices under windows vista and newer
            if (Alc.alcIsExtensionPresent(IntPtr.Zero, "ALC_ENUMERATE_ALL_EXT") == Alc.ALC_TRUE)
            {
                return(QueryDevices("ALC_ENUMERATE_ALL_EXT", Alc.ALC_ALL_DEVICES_SPECIFIER));
            }

            if (Alc.alcIsExtensionPresent(IntPtr.Zero, "ALC_ENUMERATION_EXT") == Alc.ALC_TRUE)
            {
                return(QueryDevices("ALC_ENUMERATION_EXT", Alc.ALC_DEVICE_SPECIFIER));
            }

            return(new string[] {});
        }