# VST3: 64 input channels not possible?

**URL:** <https://forum.juce.com/t/vst3-64-input-channels-not-possible/23233>\
**Category:** Audio Plugins\
**Created:** [July 7, 2017, 2:51pm UTC](https://forum.juce.com/t/vst3-64-input-channels-not-possible/23233 "2017-07-07T14:51:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rip-off](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rip-off/32/2406_2.png) [@rip-off](https://forum.juce.com/u/rip-off)\
**Post date:** [July 7, 2017, 2:51pm UTC](https://forum.juce.com/t/vst3-64-input-channels-not-possible/23233/1 "2017-07-07T14:51:42Z")

</div>

Hey all,

I’m working on a special purpose plugin that needs up to 64 input channels on the bus it’s inserted in.  
In the constructor, I just add one sidechain input and in setPrefereedBussArrangement() I refuse only channel sets larger than 64 channels and otherwise return the value of AudioProcessor::setPreferredBussArrangement().  
When I periodically check, getMainBusMaxInputChannels() returns the following values when testing in Reaper:

Reaper Channels = 1 - 14 =\> correct value  
Reaper channels = 16 or 20 =\> 14  
Reaper Channels = 24 - 64 =\>19

Am I doing something wrong or is such an input channel count not possible?

I’m on JUCE 4.2.3.

---

<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:** [July 7, 2017, 3:29pm UTC](https://forum.juce.com/t/vst3-64-input-channels-not-possible/23233/2 "2017-07-07T15:29:39Z")

</div>

Have you tried this on the latest JUCE. I wouldn’t see why this would not work in the latest JUCE.

---

<div class="post-metadata">

**Author:** ![rip-off](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rip-off/32/2406_2.png) [@rip-off](https://forum.juce.com/u/rip-off)\
**Post date:** [July 11, 2017, 3:38pm UTC](https://forum.juce.com/t/vst3-64-input-channels-not-possible/23233/3 "2017-07-11T15:38:52Z")

</div>

I downloaded JUCE 5 yesterday an tried it. Same result.

My Constructor’s initializer list:  
 ![](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/0/00f6d5e771726024686600d7a8b6c69454441d20.jpg)

PluginProcessorBase is a class derived from AudioProcessor. The constructor argument is properly passed to AudioProcessor’s constructor.

isBusesLayoutSupported does this:

 ![](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/a/aa064805b18f61401be9228db202cf6205ea91fb.jpg)

Setting Reaper to 64 channels:

 ![](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/b/b54b746c6eb612aaad623e607246482e24e88842.jpg)

yields this result:

 ![](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/7/7b4a6cc7661fb2a0fc533d8637eacec9033d39da.jpg)

and getMainBusNumInputChannels() returns 19.

// EDIT:  
This is about VST3 on Windows if that is of any concern.

// EDIT2:  
Any idea @fabian?

---

<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:** [July 17, 2017, 1:00pm UTC](https://forum.juce.com/t/vst3-64-input-channels-not-possible/23233/4 "2017-07-17T13:00:51Z")

</div>

Hi @rip-off,

There were some speaker enums missing in the VST3 wrapper which REAPER tries to use when the channel count is high. I’ve added all the missing enums (and a fallback if REAPER sends us any speaker enums which aren’t defined in the VST3 SDK yet) with commit #[643bbdc](https://github.com/WeAreROLI/JUCE/commit/643bbdcf872ad363584fad31303d41dae6a65768).

However, even with the above commit, I cannot get more than 24 channels. But debugging the VST3, I see that reaper never even tries to request anything more than 24 channels. It seems to me to be a limitation of REAPER using VST3. Are you sure you have seen other VST3s which support 64 channels in REAPER?

---

<div class="post-metadata">

**Author:** ![rip-off](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rip-off/32/2406_2.png) [@rip-off](https://forum.juce.com/u/rip-off)\
**Post date:** [August 3, 2017, 12:09pm UTC](https://forum.juce.com/t/vst3-64-input-channels-not-possible/23233/5 "2017-08-03T12:09:39Z")

</div>

Hey @fabian,

sorry for the late reply - I was vacationing.

I am absolutely not sure that I have seen this working anywhere.  
The plugin will run in a version of Nuendo that has been patched by a third party (not Steinberg themselves) to allow for those channel numbers so it’s a bit hard to test but we’ll definitely give it a go with your fix.
