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

Method LoadFactoryPreset

libraries/lib-vst3/VST3EffectBase.cpp:143–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143OptionalMessage 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
157std::shared_ptr<EffectInstance> VST3EffectBase::MakeInstance() const
158{

Callers

nothing calls this directly

Calls 5

InitializeComponentsMethod · 0.80
FlushParametersMethod · 0.80
sizeMethod · 0.45
LoadPresetMethod · 0.45
StoreSettingsMethod · 0.45

Tested by

no test coverage detected