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

Method ParseAutomationParameterKey

libraries/lib-vst3/VST3Utils.cpp:111–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111bool VST3Utils::ParseAutomationParameterKey(const wxString& key, Steinberg::Vst::ParamID& paramId)
112{
113 const auto pos = key.Find('_');
114 const auto idStr = pos == wxNOT_FOUND ? key : key.Left(pos);
115 unsigned long value { };
116 if(idStr.ToULong(&value))
117 {
118 paramId = static_cast<Steinberg::Vst::ParamID>(value);
119 return true;
120 }
121 return false;
122}
123
124wxString VST3Utils::MakeFactoryPresetID(Steinberg::Vst::UnitID unitId, Steinberg::int32 programIndex)
125{

Callers

nothing calls this directly

Calls 1

FindMethod · 0.45

Tested by

no test coverage detected