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

Method SaveUserPreset

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

Source from the content-addressed store, hash-verified

141}
142
143bool Effect::SaveUserPreset(
144 const RegistryPath & name, const EffectSettings &settings) const
145{
146 // Save all settings as a single string value in the registry
147 wxString parms;
148 if (!SaveSettingsAsString(settings, parms))
149 return false;
150
151 return SetConfig(GetDefinition(), PluginSettings::Private,
152 name, wxT("Parameters"), parms);
153}
154
155RegistryPaths Effect::GetFactoryPresets() const
156{

Callers 4

InitializePresetFunction · 0.45
OnApplyMethod · 0.45
OnSaveAsMethod · 0.45
doPerformEffectMethod · 0.45

Calls 1

SetConfigFunction · 0.85

Tested by

no test coverage detected