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:
parent
28eda21b89
commit
2eaca0526d
1 changed files with 3 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue