Browse Source

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

tags/2021-05-28
tpoole 8 years ago
parent
commit
2eaca0526d
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm

+ 3
- 5
modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm 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;
}


Loading…
Cancel
Save