Plugin Hosting and Buses

Is there a solid reference for this somewhere that covers setting up the buses and so on. I can find very little documentation either within JUCE, the examples nor examples on github?

Any pointers.

I need to host instruments in an app and I can make it work if they support a 0 input channel 2 output channel configuration, but everything else fails.

checkBusesLayoutSupported() seems important?

I found this one snippet on github:

                    instance->enableAllBuses();

                    auto inputs = instance->getTotalNumInputChannels();
                    auto outputs = instance->getTotalNumOutputChannels();
                    instance->setPlayConfigDetails(inputs, outputs, sampleRate, blockSize);
                    instance->prepareToPlay(sampleRate, blockSize);

Ok that doesnt’ work sometimes either.

I’ve gone with ‘go with the default layout of the plugin and throw as many channels of audio buffer as it wants at it and then throw away the others later’ … which seems reliable :slight_smile: