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

Method DiscoverPluginsAtPath

libraries/lib-effects/LoadEffects.cpp:178–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178unsigned BuiltinEffectsModule::DiscoverPluginsAtPath(
179 const PluginPath & path, TranslatableString &errMsg,
180 const RegistrationCallback &callback)
181{
182 // At most one
183 errMsg = {};
184 auto effect = Instantiate(path);
185 if (effect)
186 {
187 if (callback)
188 callback(this, effect.get());
189 return 1;
190 }
191
192 errMsg = XO("Unknown built-in effect name");
193 return 0;
194}
195
196std::unique_ptr<ComponentInterface>
197BuiltinEffectsModule::LoadPlugin(const PluginPath & path)

Callers

nothing calls this directly

Calls 2

callbackFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected