How detect if app is in standalone mode or is a plugin?


I’d like to do some customization if the app is a plugin or is running in standalone mode, there’s a way to detect it?

Thank you!

if (PluginHostType::getPluginLoadedAs() == AudioProcessor::wrapperType_Standalone)


really thank you!!

Ok I try, but my App gives me “wrapperType_Undefined” I think it’ because I started from a plugin project and then I added a main class to start from if it is launched in standalone.
Can I force my app wrapperType at launch defining it as “wrapperType_Standalone”?

wrapperType should be defined in your audio processor class, so you can test that directly


There is also JUCEApplicationBase::isStandaloneApp()

When you added a MainWindow and replaced the createFilter with the juce start application macro, then it won’t be a plugin ever again, no need to check.