# Auval failes due to channel discrepancy between my plugin and a plugin I load inside

**URL:** <https://forum.juce.com/t/auval-failes-due-to-channel-discrepancy-between-my-plugin-and-a-plugin-i-load-inside/13755>\
**Category:** General JUCE discussion\
**Created:** [October 22, 2014, 11:08am UTC](https://forum.juce.com/t/auval-failes-due-to-channel-discrepancy-between-my-plugin-and-a-plugin-i-load-inside/13755 "2014-10-22T11:08:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tsury](https://avatars.discourse-cdn.com/v4/letter/t/71c47a/32.png) [@Tsury](https://forum.juce.com/u/Tsury)\
**Post date:** [October 22, 2014, 11:08am UTC](https://forum.juce.com/t/auval-failes-due-to-channel-discrepancy-between-my-plugin-and-a-plugin-i-load-inside/13755/1 "2014-10-22T11:08:16Z")

</div>

I have a Juce&nbsp;AU plugin that loads another Juce plugin of mine, a VST plugin.

When I try to perform an Auval test for my AU plugin, it fails during&nbsp;the first render test (1 channel).

Both the AU and the VST are configured to {1,1}, {2, 2}.

When debugging it, it seems like the test fails because the inner plugin, the VST one, thinks there should be two channels being tested, where there is only one.

It seems like the problem is related to Juce\_VST\_Wrapper, here's the initialization from the CTor:

```
numInChans (JucePlugin_MaxNumInputChannels),
         numOutChans (JucePlugin_MaxNumOutputChannels),
```

It says in the comments that these should hold the&nbsp;_maximal_ number of channels, and they do receive this value (2), but when I try to hardcode it to 1, it works.

Also, when I try to set my inner VST plugin to {1,1}, it also works.

I also tried to use setPlayConfigDetails to set the number of channels. but it only changes the AudioPluginInstance, and not the Juce\_VST\_Wrapper thus not helping.

Can someone help me understand what is wrong here?

---

<div class="post-metadata">

**Author:** ![Tsury](https://avatars.discourse-cdn.com/v4/letter/t/71c47a/32.png) [@Tsury](https://forum.juce.com/u/Tsury)\
**Post date:** [October 22, 2014, 4:49pm UTC](https://forum.juce.com/t/auval-failes-due-to-channel-discrepancy-between-my-plugin-and-a-plugin-i-load-inside/13755/2 "2014-10-22T16:49:50Z")

</div>

A more intensive search in the forums and I found this post:

http://www.juce.com/forum/topic/plugins-hosting-and-channels-handling

&nbsp;

It seems like the author was going through the exact same thing. I'll see how this can help me.
