Fixes a crash when wrapping a plugin that uses parameter groups / UnitInfo.
The value returned by -buildParameterGroup: is used to index into the paramArrayWithHierarchy array.
The size of paramArrayWithHierarchy is unitInfos.size() + 1, however buildParameterGroup: was adding an entry to parameterGroups for each parameter, rather than group, and therefore returning invalid indexes for paramArrayWithHierarchy.
This fix ensures parameterGroups contains a single entry for each unit info.
Fixes a crash when wrapping a plugin that uses parameter groups / UnitInfo.
The value returned by
-buildParameterGroup:
is used to index into theparamArrayWithHierarchy
array.The size of
paramArrayWithHierarchy
isunitInfos.size() + 1
, howeverbuildParameterGroup:
was adding an entry toparameterGroups
for each parameter, rather than group, and therefore returning invalid indexes forparamArrayWithHierarchy
.This fix ensures
parameterGroups
contains a single entry for each unit info.