mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
VST3: Fixed an assertion when JUCE_FORCE_LEGACY_PARAM_IDS=1 due to getProgramParameter() returning the wrong parameter
This commit is contained in:
parent
52fbaa6042
commit
af4b727b8a
1 changed files with 3 additions and 2 deletions
|
|
@ -262,7 +262,7 @@ public:
|
|||
//==============================================================================
|
||||
static const FUID iid;
|
||||
Array<Vst::ParamID> vstParamIDs;
|
||||
Vst::ParamID bypassParamID = 0, programParamID = 0;
|
||||
Vst::ParamID bypassParamID = 0, programParamID = static_cast<Vst::ParamID> (paramPreset);
|
||||
bool bypassIsRegularParameter = false;
|
||||
|
||||
private:
|
||||
|
|
@ -355,7 +355,8 @@ private:
|
|||
|
||||
juceParameters.params.add (ownedProgramParameter.get());
|
||||
|
||||
programParamID = static_cast<Vst::ParamID> (forceLegacyParamIDs ? i++ : paramPreset);
|
||||
if (forceLegacyParamIDs)
|
||||
programParamID = static_cast<Vst::ParamID> (i++);
|
||||
|
||||
vstParamIDs.add (programParamID);
|
||||
paramMap.set (static_cast<int32> (programParamID), ownedProgramParameter.get());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue