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

Method LoadPlugin

libraries/lib-ladspa/LadspaEffectsModule.cpp:293–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293std::unique_ptr<ComponentInterface>
294LadspaEffectsModule::LoadPlugin(const PluginPath & path)
295{
296 // Acquires a resource for the application.
297 // For us, the path is two words.
298 // 1) The library's path
299 // 2) The LADSPA descriptor index
300 long index;
301 wxString realPath = path.BeforeFirst(wxT(';'));
302 path.AfterFirst(wxT(';')).ToLong(&index);
303 auto result = Factory::Call(realPath, (int)index);
304 result->InitializePlugin();
305 return result;
306}
307
308bool LadspaEffectsModule::CheckPluginExist(const PluginPath& path) const
309{

Callers

nothing calls this directly

Calls 2

CallClass · 0.85
InitializePluginMethod · 0.45

Tested by

no test coverage detected