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

Method StoreSettings

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

Source from the content-addressed store, hash-verified

630}
631
632void VST3Wrapper::StoreSettings(EffectSettings& settings) const
633{
634 using namespace Steinberg;
635
636 VST3EffectSettings vst3settings;
637
638 {
639 PresetsBufferStream processorState;
640 if(mEffectComponent->getState(&processorState) == kResultOk)
641 vst3settings.processorState = processorState.toString();
642 }
643 {
644 PresetsBufferStream controllerState;
645 if(mEditController->getState(&controllerState) == kResultOk)
646 vst3settings.controllerState = controllerState.toString();
647 }
648
649 std::swap(vst3settings, GetSettings(settings));
650}
651
652void VST3Wrapper::LoadPreset(const wxString& presetId)
653{

Callers 2

LoadFactoryPresetMethod · 0.45
LoadPresetMethod · 0.45

Calls 3

GetSettingsFunction · 0.85
swapFunction · 0.50
toStringMethod · 0.45

Tested by

no test coverage detected