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

Method LoadSettings

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

Source from the content-addressed store, hash-verified

1037}
1038
1039void VST3Wrapper::LoadSettings(const CommandParameters& parms, EffectSettings& settings)
1040{
1041 VST3EffectSettings vst3settings;
1042
1043 if(parms.HasEntry(processorStateKey))
1044 {
1045 vst3settings.processorState = parms.Read(processorStateKey);
1046 if(parms.HasEntry(controllerStateKey))
1047 vst3settings.controllerState = parms.Read(controllerStateKey);
1048 }
1049 if(parms.HasEntry(parametersKey))
1050 vst3settings.parameterChanges = ParametersFromString(parms.Read(parametersKey));
1051
1052 std::swap(vst3settings, GetSettings(settings));
1053}
1054
1055void VST3Wrapper::SaveSettings(const EffectSettings& settings, CommandParameters& parms)
1056{

Callers

nothing calls this directly

Calls 5

ParametersFromStringFunction · 0.85
GetSettingsFunction · 0.85
swapFunction · 0.50
HasEntryMethod · 0.45
ReadMethod · 0.45

Tested by

no test coverage detected