Projucer Audio Plugin standalone

Sorry I should be more clear. In JUCE you either choose to use the JucePlugin_PreferredChannelConfigurations define or override isBusesLayoutSupported. In any case, if you are using the standalone target, then you need to alter your plug-in so that it supports zero channels as an input. This means that you would have to alter the Projucer’s audio plugin default template code to also support zero input channels, when adding the standalone target to the project.

If you are using JucePlugin_PreferredChannelConfigurations then you should include layouts that have an input count of 0. If you are using isBusesLayoutSupported, then you want to return true even if the number of input channels are zero.

In your case (as you are using JucePlugin_PreferredChannelConfigurations), as stated above, you need to change your code to the following:

#ifndef JucePlugin_PreferredChannelConfigurations
 #define JucePlugin_PreferredChannelConfigurations {1,1},{2,2},{0,1},{0,2}
#endif

If you were using the isBusesLayoutSupported you would change the default code generated by the Projucer to also return true if there are no input channels.

1 Like