Then Logic Pro X does what I’d expect and only offers a Stereo version of the plugin. However, Garageband still offers a Mono version, and displays an error message if I select that version.
Is there any other way to tell a host that a plugin is Stereo-only (or n-channels only for that matter) ?
I want it to be zero in stereo out, and actually my original code achieves what I want.
It seems the problem was that GB was somehow not updating when I re-compiled my plugin. Whether it was caching the bus configuration I’m not sure, but in order to force it to update I had to change my plugin ID and do a full clean and rebuild.
Yeah, I’ve got at script that clears the AU cache as a matter of course and I’m pretty sure I did that. It seemed like GB had some other way of caching bus layouts irrespective of the AU cache, but I’m probably just imagining things!
The plugin is in the “aumu” category, and so far I’ve had no problems with not returning false for layouts.getMainInputChannelSet() != AudioChannelSet::disabled() but I’ve added it now just in case.