# 4.1. Default Channel Configuration problems

**URL:** https://forum.juce.com/t/4-1-default-channel-configuration-problems/16877
**Category:** Audio Plugins
**Created:** [March 8, 2016, 4:06pm UTC](https://forum.juce.com/t/4-1-default-channel-configuration-problems/16877 "2016-03-08T16:06:01Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)
#### Post date: [March 8, 2016, 4:06pm UTC](https://forum.juce.com/t/4-1-default-channel-configuration-problems/16877/1 "2016-03-08T16:06:01Z")

</div>

1. When i open my plugin in the Plugin Host example, the plugin opens with the maximum number of I/O channels (Like other some hosts also). Even when the default channel-configuration is stereo/stereo. Is this intended?&nbsp;

Does the default configuration has any influence when the setPreferredChannel-Configurations allows higher channel numbers in this situation?

(A lot of hosts behave so)

2. If I allow higher channel numbers &nbsp;than 8/8 channels - for example 20/20 &nbsp;

then AU-Version&nbsp;jumps back to default (2/2) (in Plugin-Host) while&nbsp;VST&nbsp;uses 8/8 (It seems to be the maximum)

&nbsp;

&nbsp;

---

<div class="post-metadata">

### Author: ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)
#### Post date: [March 8, 2016, 4:29pm UTC](https://forum.juce.com/t/4-1-default-channel-configuration-problems/16877/2 "2016-03-08T16:29:00Z")

</div>

I need higher channel numbers than 8/8&nbsp;for my special purpose plugins

EDIT: I just spend my evening thinking about the setPreferredBusArrangement()-method. I want to understand it, but&nbsp;it feels kind of strange. There are two complete different ways how hosts sets the channel-configuration, &nbsp;or getting possible channel-configuration layouts.&nbsp;And it seems&nbsp;setPreferredBusArrangement() is the attempt to satisfy both requirements, which makes it somehow weird.&nbsp;

---

<div class="post-metadata">

### Author: ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)
#### Post date: [March 9, 2016, 9:56am UTC](https://forum.juce.com/t/4-1-default-channel-configuration-problems/16877/3 "2016-03-09T09:56:00Z")

</div>

> I need higher channel numbers than 8/8&nbsp;for my special purpose plugins

I think you'll have the best results with VST3 here. AU itself supports these configurations (check the output of auval for example or use AULab), however, Logic Pro does not currently support many formats and I think you are out of luck with anything more than 8 channels. You'll have mixed results with VST2.

Unfortunately, VST2 needs to present the maximum number of channels as it's default layout to be compatible with many DAWs (as you mention, many other plug-ins do this as well). I'm trying to add a list of DAWs to the VST2 wrapper which are known to work without choosing the maximum number of channels. Currently, I've only added ableton live to this list.

> &nbsp;
> 
> There are two complete different ways how hosts sets the channel-configuration, &nbsp;or getting possible channel-configuration layouts.&nbsp;And it seems&nbsp;setPreferredBusArrangement() is the attempt to satisfy both requirements, which makes it somehow weird.&nbsp;

For VST3 and most of AU, I just pass down the setBusArrangement callback from the DAW to setPreferredBusArrangement of the AudioProcessor. AU has additional callbacks which want to know possible layouts beforehand. I think this should work quite well.&nbsp;

---

<div class="post-metadata">

### Author: ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)
#### Post date: [March 9, 2016, 10:55am UTC](https://forum.juce.com/t/4-1-default-channel-configuration-problems/16877/4 "2016-03-09T10:55:00Z")

</div>

I have realized plugins with higher channel-number with VST2 and there are working fine in PluginHost, and other DAWs like&nbsp;CYCLING ‘74&nbsp;MAX (if remember correctly) in JUCE 4.0

Costumers using&nbsp;this plugins right now for special purpose high channel-number surround processing, and i need make updates compatible with it.

I think the limitation is due the fact (if i've analyzed it correctly) &nbsp;that " **markDiscreteLayoutsAsSupported**" in&nbsp;PluginBusUtilities is false for VST2.

Could this just&nbsp;be true?

Or make it customizable through optional callbacks: void AudioProcessor::supportsHighChannelNumbers() { return true }

Also the number of 9 in&nbsp;findAllCompatibleLayoutsForBus must be increased.

> I'm trying to add a list of DAWs to the VST2 wrapper which are known to work without choosing the maximum number of channels

Please Please Please make it configurable, don't make it hard-wired!! The more configuration-callbacks the better ( all optional of course&nbsp;)

Why not add a &nbsp;to AudioProcessor

```
virtual AudioProcessor::getDefaultChannelLayout(ChannelLayoutWhatever& l)
{
  //Pseudo Code

  if (Ableton)
  ​{
     l = stereo, stereo
  }
};

virtual AudioProcessor::supportsHighChannelNumbers() { return false }
```

So if there is something, **i can override these methods** , and&nbsp;i don't have to create a topic anytime! ;-)

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

### Author: ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)
#### Post date: [March 9, 2016, 11:09am UTC](https://forum.juce.com/t/4-1-default-channel-configuration-problems/16877/5 "2016-03-09T11:09:24Z")

</div>

OK this is definitely a bug. If you are not using aux or sidechains then JUCE should behave just as it behaved in JUCE 4.0. What are the exact channel configurations you want support? Only 20/20? Or everything up to 20/20? Does the input and output need to have the same number of channels?

---

<div class="post-metadata">

### Author: ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)
#### Post date: [March 9, 2016, 2:48pm UTC](https://forum.juce.com/t/4-1-default-channel-configuration-problems/16877/6 "2016-03-09T14:48:16Z")

</div>

Thanks,&nbsp;up to 20, 20 would be cool, currently i use 16/16

> Does the input and output need to have the same number of channels?

Yes, but this maybe is not always the case

---

<div class="post-metadata">

### Author: ![railjonrogut](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/railjonrogut/32/505_2.png) [@railjonrogut](https://forum.juce.com/u/railjonrogut)
#### Post date: [March 9, 2016, 4:54pm UTC](https://forum.juce.com/t/4-1-default-channel-configuration-problems/16877/7 "2016-03-09T16:54:00Z")

</div>

My plugin works fine with

```auto
#ifndef JucePlugin_MaxNumInputChannels
 #define JucePlugin_MaxNumInputChannels 2
#endif
#ifndef JucePlugin_MaxNumOutputChannels
 #define JucePlugin_MaxNumOutputChannels 32
#endif
#ifndef JucePlugin_PreferredChannelConfigurations
 #define JucePlugin_PreferredChannelConfigurations {1, 32}, {2, 32}
#endif
#ifndef JucePlugin_IsSynth
 #define JucePlugin_IsSynth 1
#endif
```

in everything except AU with JUCE 4.0 (with my AAX and RTAS mods). I believe Logic has a max of 8 stereo outputs allowed.

I can’t get it to work in JUCE 4.1

Rail

---

<div class="post-metadata">

### Author: ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)
#### Post date: [March 9, 2016, 6:06pm UTC](https://forum.juce.com/t/4-1-default-channel-configuration-problems/16877/8 "2016-03-09T18:06:13Z")

</div>

I'll have a look at this tomorrow.

---

<div class="post-metadata">

### Author: ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)
#### Post date: [March 11, 2016, 6:01pm UTC](https://forum.juce.com/t/4-1-default-channel-configuration-problems/16877/9 "2016-03-11T18:01:59Z")

</div>

Sorry this is taking a bit longer than expected. I've done all the changes which fixes the above bugs. The changes will also give you a bit more fine-grained control over the behaviour of VST-2 plug-ins.&nbsp;Still needs a bit more testing in a few more DAWs until I'm confident in releasing this.

---

<div class="post-metadata">

### Author: ![fiedleraudio](https://avatars.discourse-cdn.com/v4/letter/f/5daacb/32.png) [@fiedleraudio](https://forum.juce.com/u/fiedleraudio)
#### Post date: [March 17, 2016, 3:16pm UTC](https://forum.juce.com/t/4-1-default-channel-configuration-problems/16877/10 "2016-03-17T15:16:42Z")

</div>

Hi Fabian,

i already wrote in the thread about the ultimate channel layout guide.

Please raise the limit to at least {32,32}. We have been working with this with anteriour versions of juce without any problem in Reaper.

If possible, {64,64} would be highly appreciated. And everything below it of course...

:-)

Thomas

---

<div class="post-metadata">

### Author: ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)
#### Post date: [March 21, 2016, 9:44am UTC](https://forum.juce.com/t/4-1-default-channel-configuration-problems/16877/11 "2016-03-21T09:44:22Z")

</div>

Hi Thomas,

I have a patch that would allow you to specify the max number of channels in your AudioProcessor. However, before I merge this in, I'd like to do a bit more testing on various platforms/DAWs. Sorry for the delay.

Fabian

---

<div class="post-metadata">

### Author: ![fiedleraudio](https://avatars.discourse-cdn.com/v4/letter/f/5daacb/32.png) [@fiedleraudio](https://forum.juce.com/u/fiedleraudio)
#### Post date: [April 2, 2016, 9:42am UTC](https://forum.juce.com/t/4-1-default-channel-configuration-problems/16877/12 "2016-04-02T09:42:45Z")

</div>

Hi Fabian,

&nbsp;

thanks. When can we expect to see the fix please? :)

&nbsp;

Thomas

---

<div class="post-metadata">

### Author: ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)
#### Post date: [April 4, 2016, 8:33am UTC](https://forum.juce.com/t/4-1-default-channel-configuration-problems/16877/13 "2016-04-04T08:33:03Z")

</div>

Sorry for the delay. But all I can say is that this is coming very soon. This will be a larger fix addressing multiple issues.

---

<div class="post-metadata">

### Author: ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)
#### Post date: [April 7, 2016, 12:08pm UTC](https://forum.juce.com/t/4-1-default-channel-configuration-problems/16877/14 "2016-04-07T12:08:32Z")

</div>

Is this fixed with 4.2?

---

<div class="post-metadata">

### Author: ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)
#### Post date: [April 7, 2016, 2:38pm UTC](https://forum.juce.com/t/4-1-default-channel-configuration-problems/16877/15 "2016-04-07T14:38:26Z")

</div>

See the following post:

[http://forum.juce.com/t/the-ultimate-juce-4-1-multibus-guide/16755/36?u=fabian](http://forum.juce.com/t/the-ultimate-juce-4-1-multibus-guide/16755/36?u=fabian)
