MCPcopy Create free account
hub / github.com/audacity/audacity / DiscoverPluginsAtPath

Method DiscoverPluginsAtPath

libraries/lib-lv2/LoadLV2.cpp:260–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260unsigned LV2EffectsModule::DiscoverPluginsAtPath(
261 const PluginPath & path, TranslatableString &errMsg,
262 const RegistrationCallback &callback)
263{
264 errMsg = {};
265 if (const auto plug = GetPlugin(path)) {
266 LV2EffectBase effect(*plug);
267 if (effect.InitializePlugin()) {
268 if (callback)
269 callback( this, &effect );
270 return 1;
271 }
272 }
273
274 errMsg = XO("Could not load the library");
275 return 0;
276}
277
278std::unique_ptr<ComponentInterface>
279LV2EffectsModule::LoadPlugin(const PluginPath & path)

Callers 4

RegisterEffectPluginMethod · 0.45
DiscoverFunction · 0.45
DropFileMethod · 0.45
readMetaMethod · 0.45

Calls 3

GetPluginFunction · 0.85
callbackFunction · 0.85
InitializePluginMethod · 0.45

Tested by

no test coverage detected