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:
parent
7908f0cdd0
commit
b3bcb66349
1 changed files with 10 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue