I have a plugin that I’ve moved from JUCE 5.3.2 to 5.4.7, and changed from the old method of adding parameters to the new parameter layout method. I’m now using AudioParameterChoice for my drop-down-attached parameters. For VST3 and AU, this is working fine. But for AAX, something is causing the selection index returned when selecting an item from the list to be TWICE the index value that it should be. That makes all my selections (except the first one, at index 0) be incorrect, and causes a crash if I select any item more than half way down the list.
It’s as if using AudioParameterChoice, along with the ComboBox attachment, is causing each item to be added twice or something. The items only appear once, but the index that they return is twice what it should be. Any ideas how that could be? Should I be using a different parameter type? Or not adding the choices list to the parameter, and only using the drop-down’s list as it was entered in Projucer? Or…?