1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

AudioProcessorGraph: Fix MIDI channel bug and graph execution modification

MIDI only plugins are no longer provided valid audio buffers
Graph nodes are only executed when they have active connections
This commit is contained in:
Oli 2022-03-22 11:52:47 +00:00
parent 15bdae16b2
commit b918fd3159
3 changed files with 21 additions and 2 deletions

View file

@ -79,7 +79,7 @@ public:
void processBlock (AudioBuffer<float>& buffer, MidiBuffer& midi) override
{
// the audio buffer in a midi effect will have zero channels!
// A pure MIDI plugin shouldn't be provided any audio data
jassert (buffer.getNumChannels() == 0);
// however we use the buffer to get timing information