mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
VST3 Host: Add ARA extension detection when scanning plugin from moduleinfo.json
This commit is contained in:
parent
3c9645fa60
commit
2571e772d3
1 changed files with 14 additions and 0 deletions
|
|
@ -192,6 +192,19 @@ static std::vector<PluginDescription> createPluginDescriptions (const File& plug
|
|||
{
|
||||
std::vector<PluginDescription> result;
|
||||
|
||||
const auto araMainFactoryClassNames = [&]
|
||||
{
|
||||
std::unordered_set<String> factories;
|
||||
|
||||
#if JUCE_PLUGINHOST_ARA && (JUCE_MAC || JUCE_WINDOWS || JUCE_LINUX)
|
||||
for (const auto& c : info.classes)
|
||||
if (c.category == kARAMainFactoryClass)
|
||||
factories.insert (CharPointer_UTF8 (c.name.c_str()));
|
||||
#endif
|
||||
|
||||
return factories;
|
||||
}();
|
||||
|
||||
for (const auto& c : info.classes)
|
||||
{
|
||||
if (c.category != kVstAudioEffectClass)
|
||||
|
|
@ -208,6 +221,7 @@ static std::vector<PluginDescription> createPluginDescriptions (const File& plug
|
|||
description.pluginFormatName = "VST3";
|
||||
description.numInputChannels = 0;
|
||||
description.numOutputChannels = 0;
|
||||
description.hasARAExtension = araMainFactoryClassNames.find (description.name) != araMainFactoryClassNames.end();
|
||||
|
||||
const auto uid = VST3::UID::fromString (c.cid);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue