Browse Source

Carla: Don't add midi messages to buffer if plugin is not active

tags/v0.9.0
falkTX 13 years ago
parent
commit
f96853cdc6
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      c++/carla-backend/carla_plugin.h

+ 3
- 0
c++/carla-backend/carla_plugin.h View File

@@ -1646,6 +1646,9 @@ public:
CARLA_ASSERT(note < 128); CARLA_ASSERT(note < 128);
CARLA_ASSERT(velo < 128); CARLA_ASSERT(velo < 128);


if (! m_active)
return;

engineMidiLock(); engineMidiLock();
for (unsigned short i=0; i < MAX_MIDI_EVENTS; i++) for (unsigned short i=0; i < MAX_MIDI_EVENTS; i++)
{ {


Loading…
Cancel
Save