[SOLVED] Standalone plugin conditional compilation

Here’s what I did…

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

2 Likes