| 295 | public: |
| 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 |
nothing calls this directly
no test coverage detected