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

Method performEdit

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

Source from the content-addressed store, hash-verified

337 Steinberg::tresult PLUGIN_API beginEdit(Steinberg::Vst::ParamID id) override { return Steinberg::kResultOk; }
338
339 Steinberg::tresult PLUGIN_API performEdit(Steinberg::Vst::ParamID id, Steinberg::Vst::ParamValue valueNormalized) override
340 {
341 if(std::this_thread::get_id() != mThreadId)
342 return Steinberg::kResultFalse;
343
344 NotifyParamChange(id, valueNormalized);
345
346 if(mStateChangeSettings != nullptr || !mWrapper.IsActive())
347 // Collecting edit callbacks from the plug-in, in response to changes
348 // of complete state, while doing FetchSettings() (which may be delayed...)
349 mParametersCache[id] = valueNormalized;
350 else if(mAccess)
351 {
352 mAccess->ModifySettings([&](EffectSettings& settings)
353 {
354 auto& vst3settings = GetSettings(settings);
355 vst3settings.parameterChanges[id] = valueNormalized;
356 return nullptr;
357 });
358 }
359
360 return Steinberg::kResultOk;
361 }
362
363 Steinberg::tresult PLUGIN_API endEdit(Steinberg::Vst::ParamID id) override { return Steinberg::kResultOk; }
364

Callers 2

LoadPresetMethod · 0.80

Calls 2

GetSettingsFunction · 0.85
IsActiveMethod · 0.45

Tested by

no test coverage detected