# Multi-output AudioUnits hosting in JUCE e.g. BFD3/Kontakt: Not Supported!

**URL:** <https://forum.juce.com/t/multi-output-audiounits-hosting-in-juce-e-g-bfd3-kontakt-not-supported/15408>\
**Category:** Audio Plugins\
**Created:** [December 15, 2013, 9:51pm UTC](https://forum.juce.com/t/multi-output-audiounits-hosting-in-juce-e-g-bfd3-kontakt-not-supported/15408 "2013-12-15T21:51:26Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![nonchai](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/nonchai/32/1507_2.png) [@nonchai](https://forum.juce.com/u/nonchai)\
**Post date:** [December 15, 2013, 9:51pm UTC](https://forum.juce.com/t/multi-output-audiounits-hosting-in-juce-e-g-bfd3-kontakt-not-supported/15408/1 "2013-12-15T21:51:26Z")

</div>

I am using JUCE v2.1.5&nbsp; to host/instantiate a Kontakt 5 Audiounit plugin. &nbsp;The plugin instances work fine - editor opens , sounds play ok,respond to MIDI etc - all &nbsp;as expected. &nbsp;But the Kontakt 5 &nbsp;plugin ( as audiounit ) seems to be instantiated by default to&nbsp;single&nbsp;stereo outs. And I cannot get the plugin to switch to 32 outputs for multi-channel operation.&nbsp;

&nbsp;

I've tried to &nbsp;use&nbsp;&nbsp; setPlayConfigDetails() to change the nr of output channels dynamically ( since my undertanding is that AU allows this whereas VST doesnt ) but get no result:&nbsp;&nbsp;

( &nbsp;forceOutputChannelCount = 32 &nbsp;here )&nbsp;

&nbsp;&nbsp;pluginSB-\>getPluginInstance()-\>setPlayConfigDetails(0,forceOutputChannelCount,engine-\>getSampleRate(),engine-\>getBlockSize());

&nbsp;

what am i doing wrong ?&nbsp;

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [December 17, 2013, 4:58pm UTC](https://forum.juce.com/t/multi-output-audiounits-hosting-in-juce-e-g-bfd3-kontakt-not-supported/15408/2 "2013-12-17T16:58:35Z")

</div>

No, you're not being purposefully ignored! But I don't know anything about kontakt, I don't know the answer to this question, and I don't have time to try it myself! Perhaps someone else will have a suggestion..

---

<div class="post-metadata">

**Author:** ![nonchai](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/nonchai/32/1507_2.png) [@nonchai](https://forum.juce.com/u/nonchai)\
**Post date:** [December 17, 2013, 5:05pm UTC](https://forum.juce.com/t/multi-output-audiounits-hosting-in-juce-e-g-bfd3-kontakt-not-supported/15408/3 "2013-12-17T17:05:00Z")

</div>

This is very much to do with JUCE and hosting. &nbsp; And AudioUnits. &nbsp;It is YOUR code JULIAN. &nbsp; &nbsp;I only mentioned Kontakt as an example here since that is a ubiquitous plugin which can be switched from&nbsp;stereo output mode to 32 output mode as needs be.

&nbsp;

In VST one has to use different plugins in order to do one or the other. &nbsp;In&nbsp;AudiUnit land, to my best knowledge -the one plugin ( or at least one plugin "component" &nbsp;) &nbsp;serves as both a stereo out or &nbsp;a multichannel out &nbsp;plugin.&nbsp;

Kontakt is one of the most widely used plugins out there. &nbsp; I merely need to know how to host this in both stereo out, AND in multichannel out mode AS AN AUDIOUNIT ON OSX. &nbsp;&nbsp;

&nbsp;

This is what most DAWS &nbsp;do. &nbsp; For a certain fact - both Cubase and Ableton do.

&nbsp;

&nbsp; I am using&nbsp;AudioPluginInstance&nbsp;(), &nbsp;AudioPliginFormatmanager, PluginDirectoryScanner &nbsp; etc etc, to do the hosting

as normal in JUCE. &nbsp;And I am using the AUDIOUNIT WRAPPER code that you supply in JUCE to do this. &nbsp;Host AU plugins. &nbsp;&nbsp;

&nbsp;

My code, using JUCE can currently host plugins with stereo outputs just fine. &nbsp; But like most DAWs - one sometimes nees to use a plugin ( like Kontakt or Halion ) &nbsp; in MULTI-CHANNEL OUTPUT &nbsp;mode. &nbsp;For example when using several sampler instruments inside a single instance of Kontakt and sending them to seperate tracks in the DAW. &nbsp;

&nbsp;

How do you host and deal with plugins that have multiple outputs on Traktion right now ? &nbsp;&nbsp;

&nbsp;

Halion 5 is multitimbral for example. &nbsp;Any decent DAW will let you load up 16 seperate instruments inside Halion 5 ( or Sonic ) and then route each of the 16 stereo outs from the single instance of HALION - to seperarte tracks in Cubase or Ableton etc.&nbsp;

&nbsp;

I presume Traktion allows this too ? &nbsp;

---

<div class="post-metadata">

**Author:** ![SBMastering](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/sbmastering/32/129_2.png) [@SBMastering](https://forum.juce.com/u/SBMastering)\
**Post date:** [December 17, 2013, 5:30pm UTC](https://forum.juce.com/t/multi-output-audiounits-hosting-in-juce-e-g-bfd3-kontakt-not-supported/15408/4 "2013-12-17T17:30:00Z")

</div>

Hi, I'm totally new to JUCE&nbsp;but I've been reading the forum like a madman. &nbsp;This thread my have some relevancy to what you're asking about, ByTheBucket:

http://www.juce.com/forum/topic/juce-30-no-sidechain-no-proper-multiout-configuration-support

Hopefully someone else more experienced than I will respond to you in a more complete way. &nbsp;You might want to post on that existing thread if what you're asking is the same as the conversation there. &nbsp;This topic is one that I am almost shocked to find out about with JUCE. &nbsp;

---

<div class="post-metadata">

**Author:** ![nonchai](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/nonchai/32/1507_2.png) [@nonchai](https://forum.juce.com/u/nonchai)\
**Post date:** [December 17, 2013, 5:44pm UTC](https://forum.juce.com/t/multi-output-audiounits-hosting-in-juce-e-g-bfd3-kontakt-not-supported/15408/5 "2013-12-17T17:44:00Z")

</div>

yes I did read that. &nbsp;I do so hope it doesnt apply to my problem though - since it seems such an obviously basic and essential thing to&nbsp;

&nbsp;support in any C++ framework claiming to support plugin Hosting - namely supporting/handling&nbsp;multiple-outs for&nbsp;AU's that use them.&nbsp;

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [December 17, 2013, 5:55pm UTC](https://forum.juce.com/t/multi-output-audiounits-hosting-in-juce-e-g-bfd3-kontakt-not-supported/15408/6 "2013-12-17T17:55:05Z")

</div>

Well, it doesn't currently support that - the hosting classes work as a lowest-common-denominator for VST/AU, and what you're talking about is&nbsp;clearly an AU-specific feature (and not one that I had heard of).

I guess it's&nbsp;something that could be added,&nbsp;and yes, we'll probably need it for tracktion at some point, so obviously I'll investigate for that, if not sooner. But it doesn't sound trivial and I don't have time to figure it out&nbsp;right now.

Please don't be one of those people who write long, ranty posts containing capital letters&nbsp;because some feature that they happen to want is missing.. Many hundreds of people use the library, and everyone has different priorities. This is not a common request - in fact I don't remember it ever being mentioned before.

---

<div class="post-metadata">

**Author:** ![nonchai](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/nonchai/32/1507_2.png) [@nonchai](https://forum.juce.com/u/nonchai)\
**Post date:** [December 17, 2013, 6:36pm UTC](https://forum.juce.com/t/multi-output-audiounits-hosting-in-juce-e-g-bfd3-kontakt-not-supported/15408/7 "2013-12-17T18:36:00Z")

</div>

yes &nbsp;- I hate capitals too. &nbsp; Wont be doing any ranting. But since this is effectively a block to my ongoing project - and&nbsp;was quite frankly something I just assumed would be in the code - I needed to know whether its just a mstake in my coding - or as appears now

something that I will have to write myself and create a seperate branch from the JUCE code.

&nbsp;

&nbsp; Hence my desperation in getting some response here.&nbsp;

&nbsp;

I will see if I can make the necessary changes to the JUCE code myself. ( eek ) &nbsp; And when successful will submit it to you for inclusion in a newer version of JUCE.

&nbsp;

in the meantime if anyone else has already done this - please let me know too ! &nbsp;I dont want to reinvent the wheel on what - ought to be by now just a given in this framework. &nbsp;

---

<div class="post-metadata">

**Author:** ![nonchai](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/nonchai/32/1507_2.png) [@nonchai](https://forum.juce.com/u/nonchai)\
**Post date:** [August 25, 2015, 2:54pm UTC](https://forum.juce.com/t/multi-output-audiounits-hosting-in-juce-e-g-bfd3-kontakt-not-supported/15408/8 "2015-08-25T14:54:00Z")

</div>

I have sent JUCE my modified version of&nbsp;juce\_AudioUnitPluginFormat.mm &nbsp;which I have been using for a while now to implement this missing functionality in JUCE - regarding AU's with &nbsp;\> 2 outputs suchas Kontakt, Halion, BFD3 &nbsp; and many others.&nbsp;

&nbsp;

I'm hoping this will speed up getting such functionality built into a future JUCE rather than me having to constantly fudge the JUCE library to support this.&nbsp;

It is very common for example for drum plugins to use mutiple outs - in order to send individual drum instruments to different input tracks in the host DAW. &nbsp; &nbsp;Ableton for example makes this very easy. &nbsp;&nbsp;

&nbsp;

It really is time JUCE had this written into the framework - given that JUCE is a framework designed specifically for AUDIO apps that either ARE or are hosted inside DAWS.&nbsp;

&nbsp;

By the way - I presume this feature - multi-outs - is still unsupported in the latest TRAKTION too ? &nbsp; if so it would be quite a thing to omit - since to my knowledge - every decent DAW out there from Ableton to Cubase to Logic supports this.&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![dave96](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dave96/32/8487_2.png) [@dave96](https://forum.juce.com/u/dave96)\
**Post date:** [August 25, 2015, 3:12pm UTC](https://forum.juce.com/t/multi-output-audiounits-hosting-in-juce-e-g-bfd3-kontakt-not-supported/15408/9 "2015-08-25T15:12:16Z")

</div>

I'm not sure if I've misunderstood you here but multi-out plugins have been supported in Tracktion for ever. If you put a plugin on a track it will simply us the first 2 channels. If you put one in a rack however, you can do whatever routing you want with a multi-out plugin.

IIRC the JUCE hosting classes always open plugins with their maximum amount of channels. Just open Kontakt in the plugin host to see all those output pins.

---

<div class="post-metadata">

**Author:** ![nonchai](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/nonchai/32/1507_2.png) [@nonchai](https://forum.juce.com/u/nonchai)\
**Post date:** [August 25, 2015, 4:55pm UTC](https://forum.juce.com/t/multi-output-audiounits-hosting-in-juce-e-g-bfd3-kontakt-not-supported/15408/10 "2015-08-25T16:55:00Z")

</div>

[&nbsp;"IIRC the JUCE hosting classes always open plugins with their maximum amount of channels. Just open Kontakt in the plugin host to see all those output pins." &nbsp;]&nbsp;

NOPE. Maybe&nbsp;most here have only been hosting VSTs where what you write IS true. Dunno. &nbsp;But not for AudioUnits.&nbsp;&nbsp;

If you use the&nbsp;juce\_PluginDirectoryScanner as per normal in order to scan all you AudioUnits &nbsp;and generate a result in KnownPluginList you will find that the PluginDescription structure &nbsp;for any AU - like Kontakt - will report &nbsp;2 outputs - ie STEREO &nbsp;even if - as is the case - the plugin IN FACT supports &nbsp;64 mono channels !!.&nbsp;

My modified version of&nbsp;juce\_AudioUnitPluginFormat.mm &nbsp;has been written so it DOES in fact set&nbsp;PluginDescription so it reports the MAXIMUM number of outputs correctly. &nbsp; &nbsp;But then in order to work properly - my code has to - inside&nbsp;juce\_AudioUnitPluginFormat.mm - actually RESET the AudioUnit &nbsp; AGAIN - in order that it initialises as a multiple output AU instead of STEREO.&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![dave96](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dave96/32/8487_2.png) [@dave96](https://forum.juce.com/u/dave96)\
**Post date:** [August 25, 2015, 5:08pm UTC](https://forum.juce.com/t/multi-output-audiounits-hosting-in-juce-e-g-bfd3-kontakt-not-supported/15408/11 "2015-08-25T17:08:00Z")

</div>

Hmm, Kontakt was a bad example, looks like I was loading the VST version. You're right the AU version does open with 2 output channels.

Perhaps the AU wrapper opens with the default number of channels. Some plugins work correctly e.g. EzDrummer:

![](http://i60.tinypic.com/r9lnno.png)

I agree with you though, there should probably be an option to choose the channel configuration when you load a plugin. This would have to be cross platform though.
