| 258 | } |
| 259 | |
| 260 | unsigned 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 | |
| 278 | std::unique_ptr<ComponentInterface> |
| 279 | LV2EffectsModule::LoadPlugin(const PluginPath & path) |
no test coverage detected