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

Added another fix to 4dcce50 to support AudioProcessor based parameter selection

This commit is contained in:
tpoole 2017-09-12 10:00:50 +01:00
parent 28eda21b89
commit 2eaca0526d

View file

@ -918,9 +918,9 @@ public:
if (inScope == kAudioUnitScope_Global && juceFilter != nullptr)
{
const auto index = getJuceIndexForAUParameterID (inID);
auto* param = juceFilter->getParameters().getUnchecked (index);
const auto normValue = juceFilter->getParameter (index);
outValue = param->getValue() * getMaximumParameterValue (index);
outValue = normValue * getMaximumParameterValue (index);
return noErr;
}
@ -936,9 +936,7 @@ public:
if (inScope == kAudioUnitScope_Global && juceFilter != nullptr)
{
const auto index = getJuceIndexForAUParameterID (inID);
auto* param = juceFilter->getParameters().getUnchecked (index);
param->setValue (inValue / getMaximumParameterValue (index));
juceFilter->setParameter (index, inValue / getMaximumParameterValue (index));
return noErr;
}