1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-27 02:20:05 +00:00

Workaround for VST-3 plug-ins which do not change their parameter values internally when the user changes them in the custom UI

This commit is contained in:
hogliux 2016-05-09 11:16:08 +01:00
parent 0d96a8b47f
commit 79dca43be3

View file

@ -398,6 +398,14 @@ public:
return kResultFalse;
owner->sendParamChangeMessageToListeners (index, (float) valueNormalized);
// did the plug-in already update the parameter internally
if (owner->editController->getParamNormalized (paramID) != (float) valueNormalized)
{
Steinberg::int32 eventIndex;
owner->inputParameterChanges->addParameterData (paramID, eventIndex)->addPoint (0, valueNormalized, eventIndex);
}
return owner->editController->setParamNormalized (paramID, valueNormalized);
}