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

Method SaveSettings

libraries/lib-vst/VSTEffectBase.cpp:171–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171bool VSTEffectBase::SaveSettings(const EffectSettings& settings, CommandParameters& parms) const
172{
173 const VSTSettings& vstSettings = GetSettings(settings);
174
175 for (const auto& item : vstSettings.mParamsMap)
176 {
177 if (item.second)
178 {
179 const auto& name = item.first;
180 const auto& value = *(item.second);
181
182 if (!parms.Write(name, value))
183 {
184 return false;
185 }
186 }
187 }
188
189 return true;
190}
191
192bool VSTEffectBase::LoadSettings(const CommandParameters& parms, EffectSettings& settings) const
193{

Callers

nothing calls this directly

Calls 2

GetSettingsFunction · 0.85
WriteMethod · 0.45

Tested by

no test coverage detected