I’m currently working on an audio unit MIDI effect plugin. Unfortunately, when I add it to AudioPluginHost, it fails an assertion (juce_AudioSampleBuffer.h line 520). I have not modified the generated project beyond making sure “plugin midi input”, “plugin midi output” and “midi effect plugin” are checked in the projucer, and setting a bundle identifier and plugin manufacturer.
If I comment out the assertion that fails, then there don’t appear to be any crashes, except that the audio unit has two audio outputs and a midi output, and no inputs. In another project, I somehow got it to have a MIDI input as well, but I don’t remember how.
If I start AudioPluginHost with the AU already loaded, the assertion does not fail even when uncommented; it looks like there’s only the issue when the AU is added to an already running instance of the AudioPluginHost.
The VST3 version of the plugin appears to work without any issues.
Any idea what might be going on? Please let me know if I should provide any additional information. Thank you!