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

Method SaveUserPreset

libraries/lib-vst3/VST3Wrapper.cpp:1088–1101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1086}
1087
1088void VST3Wrapper::SaveUserPreset(const EffectDefinitionInterface& effect, const RegistryPath& name, const EffectSettings& settings)
1089{
1090 using namespace Steinberg;
1091
1092 const auto& vst3settings = GetSettings(settings);
1093 if(vst3settings.processorState.has_value())
1094 {
1095 SetConfig(effect, PluginSettings::Private, name, processorStateKey, *vst3settings.processorState);
1096 if(vst3settings.controllerState.has_value())
1097 SetConfig(effect, PluginSettings::Private, name, controllerStateKey, *vst3settings.controllerState);
1098 }
1099 if(!vst3settings.parameterChanges.empty())
1100 SetConfig(effect, PluginSettings::Private, name, parametersKey, ParametersToString(vst3settings.parameterChanges));
1101}
1102
1103void VST3Wrapper::CopySettingsContents(const EffectSettings& src, EffectSettings& dst)
1104{

Callers

nothing calls this directly

Calls 5

GetSettingsFunction · 0.85
SetConfigFunction · 0.85
ParametersToStringFunction · 0.85
has_valueMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected