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

Method LoadFactoryPreset

libraries/lib-vst/VSTEffectBase.cpp:248–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248OptionalMessage
249VSTEffectBase::LoadFactoryPreset(int id, EffectSettings& settings) const
250{
251 // To do: externalize state so const_cast isn't needed
252 bool loadOK = const_cast<VSTEffectBase*>(this)->DoLoadFactoryPreset(id) &&
253 FetchSettings(GetSettings(settings));
254 if (!loadOK)
255 return {};
256 return MakeMessageFS(
257 VSTInstance::GetSettings(settings));
258}
259
260bool VSTEffectBase::DoLoadFactoryPreset(int id)
261{

Callers

nothing calls this directly

Calls 2

GetSettingsFunction · 0.85
DoLoadFactoryPresetMethod · 0.45

Tested by

no test coverage detected