Trying to support 1,2 or 4 inputs and max. 2 outputs.
Now the AUVAL result is following:
Reported Channel Capabilities (explicit):
[1, 2] [2, 1] [2, 2] [4, 2]
Input/Output Channel Handling:
1-1 1-2 1-4 1-5 1-6 1-7 1-8 2-2 2-4 2-5 2-6 2-7 2-8 4-4 4-5 5-5 6-6 7-7 8-8
X X
WARNING: Can Initialize Unit to un-supported num channels:InputChan:1, OutputChan:1
I don’t understand what am i doing wrong? Why 1in/1out is not supported? Also in Logic X, mono - mono version of plugin is not available.
JUCE 4.3.1
Edit: further debugging reveals that i am not even being asked if 1/1 is supported - any idea why ?? Also tried with JUCE Plugin Host - the same story.
Code is a quick example, full code is actually a bit more complex, but i did some experimenting so it is not really an example of effective & pretty programming, hehe.
Not sure what is going on here - why AUVAL is not asking me for 1/1 layout? The consequence is that mono-mono plugin is not available in Logic.
I found something else: if i change output bus of my default layout to AudioChannelSet::mono(), then i am being asked about 1/1 config. But then same problem occured with 1/2 config !?!
Could it be something wrong in 4.3.1 which has been fixed later Have to try it with version 5.
Reported Channel Capabilities (explicit):
[1, -1] [2, -1]
Input/Output Channel Handling:
1-1 1-2 1-4 1-5 1-6 1-7 1-8 2-2 2-4 2-5 2-6 2-7 2-8 4-4 4-5 5-5 6-6 7-7 8-8
X X X X X X X X X X X X X
WARNING: Source AU supports multi-channel output but does not provide a channel layout
Obviously something is not right here ?!? Can you please look at it …
Big thank you for spotting this!!! Obviously a “BAD” typo
Anyway, things are now working as expected with JUCE 5, but not with JUCE4.3.1 !!!
Looks like there must be a post 4.3.1 patch which fixes this behaviour - i will check it again, to be 100% sure. If anyone have a slightest idea, which commit this could be, please let me know. Looks like i will have to dig into this deeper - maybe somebody from Roli could chime in …
So actually had kind of a similar thing happen to me the other day, as outlined in this post:
Although in looking into it further, it seems that this may not be the correct fix, as described here:
I’m not sure which one is the correct answer. In my experience over the last few days you have to do BOTH JucePlugin_PreferredChannelConfigurations AND isBusesLayoutSupported for VST/AU to work correctly in all cases, but this post seems to indicate otherwise?