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:
parent
e26049f141
commit
49aecb6eb0
1 changed files with 3 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue