1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-14 00:14:18 +00:00

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

This commit is contained in:
reuk 2023-05-25 20:12:38 +01:00
parent 13c2ba2dcc
commit 604e090372
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

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();