I’m just getting my feet wet with Juce. While I’ve found most features to be incredibly useful, nicely documented and really quite intuitive, there’s one issue I can’t crack yet. Any help would be hugely appreciated.
I’m working on a MIDI plugin with high latency. Let’s call it 100000 samples. Everything works fine during regular processing but when playback stops, the plugin keeps working on the remaining queue for another 100000 samples, resulting in extra unwanted notes for a while. However, I’d like everything to cease immediately. I’ve tried using prepareToPlay and releaseResources to coordinate various triggers to stop the processing, empty the queue and/or reduce latency to 0, but due to the timing of these function calls they don’t seem to make any difference at all.
Any suggestions? Thanks in advance.