# AudioAppComponent and internal filters (I/O audio device channels)

**URL:** <https://forum.juce.com/t/audioappcomponent-and-internal-filters-i-o-audio-device-channels/16719>\
**Category:** General JUCE discussion\
**Created:** [February 16, 2016, 10:03pm UTC](https://forum.juce.com/t/audioappcomponent-and-internal-filters-i-o-audio-device-channels/16719 "2016-02-16T22:03:26Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![xeneize](https://avatars.discourse-cdn.com/v4/letter/x/ce7236/32.png) [@xeneize](https://forum.juce.com/u/xeneize)\
**Post date:** [February 16, 2016, 10:03pm UTC](https://forum.juce.com/t/audioappcomponent-and-internal-filters-i-o-audio-device-channels/16719/1 "2016-02-16T22:03:26Z")

</div>

The app is an analizer for my plugins and audio gear, the main class is an&nbsp;AudioAppComponent wich load plugins in two kind of tracks (FilterManager&nbsp;are the tracks, it has many Filter&nbsp;thats contains an AudioPluginInstance)

These tracks (FilterManagers) uses the input/output 1&2 (l&r) from my audio device.

I've created an "internal filter"&nbsp; **IOFilter : &nbsp;public AudioPluginInstance** to use like a&nbsp;pluginInstance in the FilterManager to use my audio device input 3 and output 3 for example in IOFilter, how can I do that?&nbsp;

Should I pass the AudioBuffer in MainApp::getNextAudioBlock to IOFilter? is there another way to do it?

&nbsp;

Thanks

&nbsp;

&nbsp;&nbsp;

---

<div class="post-metadata">

**Author:** ![xeneize](https://avatars.discourse-cdn.com/v4/letter/x/ce7236/32.png) [@xeneize](https://forum.juce.com/u/xeneize)\
**Post date:** [February 24, 2016, 5:46pm UTC](https://forum.juce.com/t/audioappcomponent-and-internal-filters-i-o-audio-device-channels/16719/2 "2016-02-24T17:46:54Z")

</div>

In my mainContentComponent (AudioAppComponent), the getNextBlockAudio look like this:

```
// Analizer preprocess (test noises, etc)
    if (analizer != nullptr)
        analizer->preProcess ();

    // Process the plugins chains. Every filterManager is a chain of audioplugins,
    // filterManager has his own (empty) AudioBuffer, so the buffer of AudioAppComponent
    // is not used.
    for (int i=0; i < filterManagers.size(); i++)
        filterManagers[i]->processBlock ();

    // process the analizer with the processed audio.
    if (analizer != nullptr)
        analizer->process ();
```

The original idea was to create an "Internal Filter" (from AudioPluginInstance) to get the input/output from my audio device to analize real gear.

I realize that this is more complicated than it seems.

perhaps this is not the best way to do what I'm doing does not matter much because it is for personal use .

&nbsp;

any help would be appreciated

---

<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:** [February 29, 2016, 2:30pm UTC](https://forum.juce.com/t/audioappcomponent-and-internal-filters-i-o-audio-device-channels/16719/3 "2016-02-29T14:30:11Z")

</div>

Not 100% sure what you're asking.. But if you're asking how to take an AudioAppComponent and make it run a plugin, you probably want to use the&nbsp;AudioProcessorPlayer class, which is designed for that kind of purpose.

You may also want to use the&nbsp;StandalonePluginHolder class, which is designed to do most of the work if you want to run your plugin in the form of a stand-alone app.

---

<div class="post-metadata">

**Author:** ![xeneize](https://avatars.discourse-cdn.com/v4/letter/x/ce7236/32.png) [@xeneize](https://forum.juce.com/u/xeneize)\
**Post date:** [February 29, 2016, 5:56pm UTC](https://forum.juce.com/t/audioappcomponent-and-internal-filters-i-o-audio-device-channels/16719/4 "2016-02-29T17:56:23Z")

</div>

Hi Jules,&nbsp;

Currently, the app runs plugins, and I using&nbsp;the app to analize (freq response, phase, thd, etc) my plugins and it works fine.

Now,&nbsp;I want to use the app to analize real hardware too. I was thinking in a audioplugin that can send his input to an audio device output and then&nbsp;get the processed audio in an audio device input to the plugin output..

It is something like a send in a daw.

---

<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:** [February 29, 2016, 6:09pm UTC](https://forum.juce.com/t/audioappcomponent-and-internal-filters-i-o-audio-device-channels/16719/5 "2016-02-29T18:09:50Z")

</div>

Ok.. so you'd send the audio to the i/o device's&nbsp;output channels, read the result from its input channels, and do whatever you need to do to it.

What exactly do you need help with?

---

<div class="post-metadata">

**Author:** ![xeneize](https://avatars.discourse-cdn.com/v4/letter/x/ce7236/32.png) [@xeneize](https://forum.juce.com/u/xeneize)\
**Post date:** [February 29, 2016, 6:33pm UTC](https://forum.juce.com/t/audioappcomponent-and-internal-filters-i-o-audio-device-channels/16719/6 "2016-02-29T18:33:57Z")

</div>

if is possible to open these connections in a plugin (or a class&nbsp;inherited from AudioPluginInstance) to&nbsp;treat the hardware as a plugin?

(I have created a IOFilter inherited from AudioPluginInstance, it loads in my app&nbsp;plugin chains, but it doen't do any process yet)

&nbsp;

&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:** [March 1, 2016, 8:39am UTC](https://forum.juce.com/t/audioappcomponent-and-internal-filters-i-o-audio-device-channels/16719/7 "2016-03-01T08:39:55Z")

</div>

Yes, like I said in my first answer,&nbsp;you can use the&nbsp;StandalonePluginHolder class to run a plugin as an app.

---

<div class="post-metadata">

**Author:** ![mashu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/mashu/32/579_2.png) [@mashu](https://forum.juce.com/u/mashu)\
**Post date:** [March 1, 2016, 9:39am UTC](https://forum.juce.com/t/audioappcomponent-and-internal-filters-i-o-audio-device-channels/16719/8 "2016-03-01T09:39:05Z")

</div>

all DAW's come equipped with Sends and Returns in their mixers. &nbsp;Just use those! &nbsp;

Setting up and managing a separate audio settings dialogue in your plugin, and then dealing with likely blocksize and samplerate mismatches just sounds like a total recipe for disaster. &nbsp;(If it is even possible?) I would guess that's why my quick google i just did now does not give any suggestions on how to do that.&nbsp;

here's an article i found, but all the solutions listed seem to be tied to their host DAW's:  
  
http://www.keyboardmag.com/how-to/1255/how-to-integrate-hardware-effects-with-your-daw/48684  
  
&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![xeneize](https://avatars.discourse-cdn.com/v4/letter/x/ce7236/32.png) [@xeneize](https://forum.juce.com/u/xeneize)\
**Post date:** [March 1, 2016, 5:40pm UTC](https://forum.juce.com/t/audioappcomponent-and-internal-filters-i-o-audio-device-channels/16719/9 "2016-03-01T17:40:00Z")

</div>

I explained very badly.

I'm working on an&nbsp;app, not plugin. The app is an analizer for vst, au and vst3, like VST Plugin Analizer,&nbsp;but adapted to my needs.&nbsp;At present, the application can only analyze plugins.

![](http://www.juce.com/sites/default/files/forum/attachments/Screen%20Shot%202016-03-01%20at%2014.26.55.jpg)

The app has two kind of tracks, to compare the results in the same graph,&nbsp;

I want to add the posibility to analize real hardware with the app, not to make a plugin like an app.&nbsp;

So, as in juce plugin host "audio Input" and "audio Output"&nbsp;, I was thinking in create a plugin AudioPluginInstance (with an internal plugin format AudioPluginFormat) into the app, to do this.&nbsp;Although it seems that doing it this way is very difficult and I doubt it work.

I think the best way is to add send/return for each track, like in a daw... Any way&nbsp;I am somewhat puzzled...&nbsp;any suggestions are welcome&nbsp;and I apologize for my bad explanation.

Thanks

&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:** [March 1, 2016, 6:06pm UTC](https://forum.juce.com/t/audioappcomponent-and-internal-filters-i-o-audio-device-channels/16719/10 "2016-03-01T18:06:22Z")

</div>

Like I said (twice!)&nbsp;StandalonePluginHolder is the class you need!

---

<div class="post-metadata">

**Author:** ![xeneize](https://avatars.discourse-cdn.com/v4/letter/x/ce7236/32.png) [@xeneize](https://forum.juce.com/u/xeneize)\
**Post date:** [March 1, 2016, 6:31pm UTC](https://forum.juce.com/t/audioappcomponent-and-internal-filters-i-o-audio-device-channels/16719/11 "2016-03-01T18:31:51Z")

</div>

Jules&nbsp;I had misunderstood the functionality of this class,&nbsp;now,&nbsp;watching the code, I think that's what I was looking for. Tomorrow I will dedicate time to this project&nbsp;and I'll delve into this​.

Thanks!!
