OpenRA.Platforms.Default.OpenAlSoundEngine.PhysicalDevices C# (CSharp) Method

PhysicalDevices() static private method

static private PhysicalDevices ( ) : string[]
return string[]
        static string[] PhysicalDevices()
        {
            // Returns all devices under Windows Vista and newer
            if (ALC11.alcIsExtensionPresent(IntPtr.Zero, "ALC_ENUMERATE_ALL_EXT"))
                return QueryDevices("ALC_ENUMERATE_ALL_EXT", ALC11.ALC_ALL_DEVICES_SPECIFIER);

            if (ALC11.alcIsExtensionPresent(IntPtr.Zero, "ALC_ENUMERATION_EXT"))
                return QueryDevices("ALC_ENUMERATION_EXT", ALC10.ALC_DEVICE_SPECIFIER);

            return new string[] { };
        }