Juce sidechain as track input [EngineInPlugin]

I can’t seem to get the sidechain right with tracktion in a plugin.
When initializing the hosted audio interface with audioInterface.initialise({}) I don’t have access to extra wave input device. But when I’m doing this:

te::HostedAudioDeviceInterface::Parameters p;
p.inputChannels = 4;
p.outputChannels = 2;
audioInterface.initialise (p);

I get device 3+4 and can connect them to a new track but then I get an assertion error:
jassertfalse; // Is an input device getting created with more channels than the total number of device channels?
in tracktion_WaveInputDevice.cpp:1018

I found a workaround which is to initialize the interface every time in prepareToPlay callback but this seems a little silly…

Will appreciate any help with this :slight_smile: