I have few question about bus layouts in JUCE 4.3.1 and later. I’ve just upgraded from 4.2.3 bus system (setPreferredBusArrangement). Sorry for maybe obvious questions, but i am a bit lost, looking for proper functions to do the job.
I have a plugin which should have, with VST2 format, from 4 to 8 channels on main input bus (dynamically set).
Other formats (AAX, AU, VST3) should have from 1-8 channels on main input bus and a sidechain bus added.
I can see, busses are always added in constructor function definition (initializing parent constructor)- is there a way to add them in constructor body ??? I would like to create different bus layout depending on wrapper format. Is this possible, i mean is info about wrapper now available already in constructor?
Another question - how do i dynamically change number of channels of the bus to the fixed value ??