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

Method create

libraries/lib-vst3/module_linux.cpp:256–269  ·  view source on GitHub ↗

------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

254
255//------------------------------------------------------------------------
256Module::Ptr Module::create (const std::string& path, std::string& errorDescription)
257{
258 auto _module = std::make_shared<LinuxModule> ();
259 if (_module->load (path, errorDescription))
260 {
261 auto it = std::find_if (path.rbegin (), path.rend (),
262 [] (const std::string::value_type& c) { return c == '/'; });
263 _module->path = path;
264 if (it != path.rend ())
265 _module->name = {it.base (), path.end ()};
266 return _module;
267 }
268 return nullptr;
269}
270
271//------------------------------------------------------------------------
272Module::PathList Module::getModulePaths ()

Callers

nothing calls this directly

Calls 5

loadMethod · 0.45
rbeginMethod · 0.45
rendMethod · 0.45
baseMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected