| 141 | } |
| 142 | |
| 143 | OptionalMessage VST3EffectBase::LoadFactoryPreset(int index, EffectSettings& settings) const |
| 144 | { |
| 145 | if(index >= 0 && index < mFactoryPresetIDs.size()) |
| 146 | { |
| 147 | VST3Wrapper wrapper(*mModule, mEffectClassInfo); |
| 148 | wrapper.InitializeComponents(); |
| 149 | wrapper.LoadPreset(mFactoryPresetIDs[index]); |
| 150 | wrapper.FlushParameters(settings); |
| 151 | wrapper.StoreSettings(settings); |
| 152 | return { nullptr }; |
| 153 | } |
| 154 | return { }; |
| 155 | } |
| 156 | |
| 157 | std::shared_ptr<EffectInstance> VST3EffectBase::MakeInstance() const |
| 158 | { |
nothing calls this directly
no test coverage detected