Browse Source

juce/ASIO: Blacklist some misbehaving drivers

Signed-off-by: falkTX <falktx@gmail.com>
tags/v2.1-alpha1-winvst
parent
commit
47140f1d18
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      source/modules/juce_audio_devices/native/juce_win32_ASIO.cpp

+ 10
- 0
source/modules/juce_audio_devices/native/juce_win32_ASIO.cpp View File

@@ -1464,7 +1464,12 @@ public:
TCHAR name [256];
while (RegEnumKey (hk, index++, name, numElementsInArray (name)) == ERROR_SUCCESS)
{
if (isBlacklistedDriver (name))
continue;
addDriverInfo (name, hk);
}
RegCloseKey (hk);
}
@@ -1597,6 +1602,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…
Cancel
Save