Browse Source

Only scan for relevant formats when using juce host

tags/v2.3.0-RC1
falkTX 4 years ago
parent
commit
a26defd8b5
1 changed files with 22 additions and 1 deletions
  1. +22
    -1
      source/backend/plugin/CarlaPluginJuce.cpp

+ 22
- 1
source/backend/plugin/CarlaPluginJuce.cpp View File

@@ -1378,7 +1378,28 @@ public:
fDesc.name = label;
}

fFormatManager.addDefaultFormats();
/**/ if (std::strcmp(format, "AU") == 0)
{
#if JUCE_PLUGINHOST_AU
fFormatManager.addFormat(new juce::AudioUnitPluginFormat());
#endif
}
else if (std::strcmp(format, "VST2") == 0)
{
#if JUCE_PLUGINHOST_VST
fFormatManager.addFormat(new juce::VSTPluginFormat());
#endif
}
else if (std::strcmp(format, "VST3") == 0)
{
#if JUCE_PLUGINHOST_VST3
fFormatManager.addFormat(new juce::VST3PluginFormat());
#endif
}
else
{
fFormatManager.addDefaultFormats();
}

{
juce::OwnedArray<juce::PluginDescription> pluginDescriptions;


Loading…
Cancel
Save