I’ve just created a simple project using the standalonefilterwindow and standalonpluginholder classes provided by JUCE. However, when I run my app I am immediately brought to an assert here:
numInputChannels is 0, and numOutputChans is 0, yet the number of input and output buses is set to 1. I have to admit to not paying much attention to the updates made to the audios bus and channels system I’ve being living in the serene peace and tranquility of JUCE 4.0 for far too long! Any ideas of how to address this?
Ah. No I don’t think so. Unless I somehow got caught in the crossfire. There are a few new methods in the AudioDeviceSetup class like BigInteger AudioDeviceManager::AudioDeviceSetup::inputChannels, but I see no reference to them at all in any of the examples. Are they internal only methods? I’m clutching at straws…
Are you creating a standalone version of a plug-in (via AUv3), or are you using the StandaloneFilterWindow and StandalonePluginHolder in a more complex way?
I’m creating a standalone version of a plugin using StandaloneFilterWindow and StandalonePluginHolder as I’ve done many times in the past with older versions of JUCE, including v4. Only this time I’m getting that assert. It works fine in release mode. But it’s bugging me all the same.
Well, without seeing your source code I would suggest looking at how the AUv3 standalone version of JuceDemoPlugin is done - that certainly avoids the asserts.
If you are on master you may want to define JucePlugin_MaxNumInputChannels, JucePlugin_MaxNumOutputChannels and JucePlugin_PreferredChannelConfigurations. For example:
For example, at the top of your AppConfig.h, add the following lines
So it seems I rather spectacularly mixed up different versions of JUCE. Apologies for sending anyone on a wild goose-chase, especially Fabian, like he’s not busy enough as is!