Browse Source

VST3: Fixed an assertion when JUCE_FORCE_LEGACY_PARAM_IDS=1 due to getProgramParameter() returning the wrong parameter

v6.1.6
ed 4 years ago
parent
commit
af4b727b8a
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp

+ 3
- 2
modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp View File

@@ -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…
Cancel
Save