1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-08 04:20:09 +00:00

AU: Fixed a bug with JUCE_FORCE_LEGACY_PARAM_IDS enabled

This commit is contained in:
Tom Poole 2018-08-13 11:10:30 +01:00
parent e26049f141
commit 49aecb6eb0

View file

@ -1938,7 +1938,9 @@ private:
AudioProcessorParameter* getParameterForAUParameterID (AudioUnitParameterID address) const noexcept
{
return paramMap[static_cast<int32> (address)];
auto index = static_cast<int32> (address);
return forceUseLegacyParamIDs ? juceParameters.getParamForIndex (index)
: paramMap[index];
}
//==============================================================================