| 291 | } |
| 292 | |
| 293 | std::unique_ptr<ComponentInterface> |
| 294 | LadspaEffectsModule::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 | |
| 308 | bool LadspaEffectsModule::CheckPluginExist(const PluginPath& path) const |
| 309 | { |
nothing calls this directly
no test coverage detected