Add AudioGraph connection to aux input


#1

Hi,
I’m having two audio processors. The first has only one stereo output bus. The second one has three input buses. The main input bus and two extra buses. All of them are stereo. When I try to connect the output of the first to one of the extra buses from the second processor, the connection gets rejected.

I’ve narrowed it down to this code in the canConnect() function in the AudioProcessor Class:

if( […] || (destChannelIndex != midiChannelIndex && destChannelIndex >= dest->processor->getMainBusNumInputChannels()) return false;

Shouldn’t it be getTotalNumInputChannels() instead of getMainBusNumInputChannels()? Or can’t I connect any output with any input as long as they are both midi or audio?