1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

ASIO: Blacklist some misbehaving drivers

This commit is contained in:
ed 2019-01-15 17:25:04 +00:00
parent 7908f0cdd0
commit b3bcb66349

View file

@ -1427,7 +1427,12 @@ public:
TCHAR name[256] = {};
while (RegEnumKey (hk, index++, name, numElementsInArray (name)) == ERROR_SUCCESS)
{
if (isBlacklistedDriver (name))
continue;
addDriverInfo (name, hk);
}
RegCloseKey (hk);
}
@ -1559,6 +1564,11 @@ private:
}
//==============================================================================
static bool isBlacklistedDriver (const String& driverName)
{
return driverName == "ASIO DirectX Full Duplex Driver" || driverName == "ASIO Multimedia Driver";
}
void addDriverInfo (const String& keyName, HKEY hk)
{
HKEY subKey;