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

Method LoadUserPreset

libraries/lib-effects/Effect.cpp:130–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130OptionalMessage Effect::LoadUserPreset(
131 const RegistryPath & name, EffectSettings &settings) const
132{
133 // Find one string in the registry and then reinterpret it
134 // as complete settings
135 wxString parms;
136 if (!GetConfig(GetDefinition(), PluginSettings::Private,
137 name, wxT("Parameters"), parms))
138 return {};
139
140 return LoadSettingsFromString(parms, settings);
141}
142
143bool Effect::SaveUserPreset(
144 const RegistryPath & name, const EffectSettings &settings) const

Callers 3

InitializePresetFunction · 0.45
DoCancelMethod · 0.45
OnUserPresetMethod · 0.45

Calls 1

GetConfigFunction · 0.85

Tested by

no test coverage detected