# \[SOLVED\] Standalone plugin conditional compilation

**URL:** <https://forum.juce.com/t/solved-standalone-plugin-conditional-compilation/30131>\
**Category:** General JUCE discussion\
**Created:** [November 1, 2018, 1:00pm UTC](https://forum.juce.com/t/solved-standalone-plugin-conditional-compilation/30131 "2018-11-01T13:00:51Z")\
**Posts on this page:** 1\
**Showing post:** 18

<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:** [December 30, 2018, 7:25pm UTC](https://forum.juce.com/t/solved-standalone-plugin-conditional-compilation/30131/18 "2018-12-30T19:25:09Z")

</div>

Here’s what I did…

> [@\[FR\] createPluginFilter (bool)](https://forum.juce.com/t/fr-createpluginfilter-bool/24772):
>
> Okay - I’m not sure if y’all would go for this… slight_smile Since my Standalone has to have a different set of Bus properties than my non-standalone version… In juce\_PluginUtilities.cpp //============================================================================== /\*\* Somewhere in the codebase of your plugin, you need to implement this function and make it return a new instance of the filter subclass that you're building. \*/ extern AudioProcessor\* JUCE\_CALLTYPE createPluginFilter (b…

```cpp
AudioProcessor* JUCE_CALLTYPE createPluginFilter()
{
    if (JUCEApplicationBase::isStandaloneApp())
         return new MyAudioProcessor (true);

     return new MyAudioProcessor();
}

```

and have two MyAudioProcessor constructors for the different channel configs.

Rail

---

_[View the full topic](https://forum.juce.com/t/solved-standalone-plugin-conditional-compilation/30131)._
