Not sure I understand, where do you do the switch? And why do you want to switch if you know that a node is only processing a single channel?
If you're node is known to be mono, then just process the first channel in the implementation, or if you want to force a generic node to only process the first channel, you can use the wrap::fix template to force mono processing.
// instead of this member declaration MyClass obj; // use wrap::fix<1, MyClass> obj;Your code is probably throwing an assertion at auto* right = block.getChannelPointer(1); if you have created the audio block from a single channel process data object.