Browse Source

VST3 Host: Update host parameter values when only plugin AudioProcessor reports changes

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

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

@@ -2225,7 +2225,7 @@ public:
for (const auto* item : queues)
{
auto* ptr = item->ptr.get();
callback (ptr->getParameterIndex(), ptr->get());
callback (ptr->getParameterIndex(), ptr->getParameterId(), ptr->get());
}
}
@@ -2734,9 +2734,12 @@ public:
processor->process (data);
outputParameterChanges->forEach ([&] (Steinberg::int32 index, float value)
outputParameterChanges->forEach ([&] (Steinberg::int32 index, Vst::ParamID id, float value)
{
parameterDispatcher.push (index, value);
cachedParamValues.setWithoutNotifying (index, value);
if (auto* param = getParameterForID (id))
param->setValueWithoutUpdatingProcessor (value);
});
midiMessages.clear();


Loading…
Cancel
Save