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

Method SaveSettings

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

Source from the content-addressed store, hash-verified

1053}
1054
1055void VST3Wrapper::SaveSettings(const EffectSettings& settings, CommandParameters& parms)
1056{
1057 const auto& vst3settings = GetSettings(settings);
1058
1059 if(vst3settings.processorState.has_value())
1060 parms.Write(processorStateKey, *vst3settings.processorState);
1061 if(vst3settings.controllerState.has_value())
1062 parms.Write(controllerStateKey, *vst3settings.controllerState);
1063 if(!vst3settings.parameterChanges.empty())
1064 parms.Write(parametersKey, ParametersToString(vst3settings.parameterChanges));
1065}
1066
1067OptionalMessage VST3Wrapper::LoadUserPreset(
1068 const EffectDefinitionInterface& effect, const RegistryPath& name, EffectSettings& settings)

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected