steinbergmedia / vst3_public_sdk

VST 3 Implementation Helper Classes And Examples
Other
139 stars 46 forks source link

AUv3Wrapper: fix crash building parameter groups #43

Closed nickdowell closed 1 year ago

nickdowell commented 1 year ago

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.

ygrabit commented 1 year ago

fixed in the last SDK release