Definition at line 275 of file LoadLV2.cpp.
◆ Validate()
void anonymous_namespace{LoadLV2.cpp}::LV2PluginValidator::Validate |
( |
ComponentInterface & |
pluginInterface | ) |
|
|
inlineoverridevirtual |
- Parameters
-
pluginInterface | loaded plugin |
Implements PluginProvider::Validator.
Definition at line 278 of file LoadLV2.cpp.
279 {
280 if(
auto lv2effect =
dynamic_cast<LV2EffectBase*
>(&pluginInterface))
281 {
282 LV2_Atom_Forge forge;
283 lv2_atom_forge_init(&forge, lv2effect->mFeatures.URIDMapFeature());
284
287
288 auto settings = lv2effect->MakeSettings();
290 instanceFeatures,
291 lv2effect->mPorts,
292 portStates,
294 44100.0,
295 nullptr);
296
297 if(!wrapper)
298 throw std::runtime_error("Cannot create LV2 instance");
299
300 }
301 else
302 throw std::runtime_error("Not a LV2Effect");
303 }
LV2EffectSettings & GetSettings(EffectSettings &settings)
static Settings & settings()
std::vector< LV2_Feature > mFeatures
static std::unique_ptr< LV2Wrapper > Create(LV2InstanceFeaturesList &baseFeatures, const LV2Ports &ports, LV2PortStates &portStates, const LV2EffectSettings &settings, float sampleRate, EffectOutputs *pOutputs)
Factory.
References LV2Wrapper::Create(), GetSettings(), ExtendedLV2FeaturesList::mFeatures, and settings().
The documentation for this class was generated from the following file: