Triggered jassert in MidiCollector when in Standalone mode

Hi, I’ve compiled a plugin with the standalone wrapper provided, but when I set the audio device to “No audio” in the audio settings menu, the following jassert is triggered on exit:

located in file juce_MidiMessageCollector.cpp at line 60, within reset() method.

I think the case of working with no audio device chosen should be considered, thus the condition of the assert should be changed someway.

Fair point!

I think you probably just need to tweak line 124 of juce_AudioFilterStreamer.cpp:

midiCollector.reset (sampleRate > 0 ? sampleRate : 44100.0);