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

Method Validate

libraries/lib-vst3/VST3EffectsModule.cpp:297–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295public:
296
297 void Validate(ComponentInterface& component) override
298 {
299 if(auto vst3effect = dynamic_cast<VST3EffectBase*>(&component))
300 {
301 VST3Wrapper wrapper (
302 *vst3effect->mModule,
303 vst3effect->mEffectClassInfo
304 );
305 wrapper.InitializeComponents();
306 }
307 else
308 throw std::runtime_error("Not a VST3Effect");
309 }
310
311};
312

Callers

nothing calls this directly

Calls 1

InitializeComponentsMethod · 0.80

Tested by

no test coverage detected