Browse Source

VST3 Host: Ensure that parameter changes from the processor are communicated to the edit controller

v7.0.12
reuk 2 years ago
parent
commit
46b90d9ea0
No known key found for this signature in database GPG Key ID: FCB43929F012EE5C
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp

+ 6
- 2
modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp View File

@@ -2244,7 +2244,7 @@ public:
for (const auto* item : queues)
{
auto* ptr = item->ptr.get();
callback (ptr->getParameterId(), ptr->get());
callback (ptr->getParameterIndex(), ptr->getParameterId(), ptr->get());
}
}
@@ -2753,8 +2753,12 @@ public:
processor->process (data);
outputParameterChanges->forEach ([&] (Vst::ParamID id, float value)
outputParameterChanges->forEach ([&] (Steinberg::int32 vstParamIndex, Vst::ParamID id, float value)
{
// Send the parameter value from the processor to the editor
parameterDispatcher.push (vstParamIndex, value);
// Update the host's parameter value
if (auto* param = getParameterForID (id))
param->setValueWithoutUpdatingProcessor (value);
});


Loading…
Cancel
Save