From f96853cdc63e666dac566e24697802302b8ab045 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 28 Sep 2012 08:35:47 +0100 Subject: [PATCH] Carla: Don't add midi messages to buffer if plugin is not active --- c++/carla-backend/carla_plugin.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/c++/carla-backend/carla_plugin.h b/c++/carla-backend/carla_plugin.h index e2e13ed..f688094 100644 --- a/c++/carla-backend/carla_plugin.h +++ b/c++/carla-backend/carla_plugin.h @@ -1646,6 +1646,9 @@ public: CARLA_ASSERT(note < 128); CARLA_ASSERT(velo < 128); + if (! m_active) + return; + engineMidiLock(); for (unsigned short i=0; i < MAX_MIDI_EVENTS; i++) {