Greetings.
In my plugin, I want to host a nested plugin.
When I run the plugin in a host DAW (I’ve tested with Ableton Live and REAPER), the AudioPluginInstance
is always nullptr
.
However, when I run my plugin as standalone, everything works just fine.
this is what my prepareToPlay() looks like:
if (prepared)
return;
prepared = true;
juce::String pluginPath = "C:\\Program Files\\Common Files\\VST3\\OTT.vst3";
OwnedArray<PluginDescription> pluginDescriptions;
KnownPluginList plist;
pluginFormatManager.addDefaultFormats();
juce::String msg;
for (int i = 0; i < pluginFormatManager.getNumFormats(); ++i)
plist.scanAndAddFile(pluginPath, true, pluginDescriptions,
*pluginFormatManager.getFormat(i));
jassert(pluginDescriptions.size() > 0);
plugin = pluginFormatManager.createPluginInstance(*pluginDescriptions[0],
sampleRate, samplesPerBlock, msg);
plugin
is of type std::unique_ptr<juce::AudioPluginInstance>
,
and msg
is always empty.
Help is very much appreciated.