diff --git a/source/plugin/carla-vst.cpp b/source/plugin/carla-vst.cpp index da27fbcf9..47284226d 100644 --- a/source/plugin/carla-vst.cpp +++ b/source/plugin/carla-vst.cpp @@ -111,9 +111,6 @@ public: fVstRect.right = 740; init(); - - // tell host we want MIDI events - fAudioMaster(fEffect, audioMasterWantMidi, 0, 0, nullptr, 0.0f); } ~NativePlugin() @@ -197,6 +194,9 @@ public: fMidiEventCount = 0; carla_zeroStruct(fTimeInfo); + + // tell host we want MIDI events + fAudioMaster(fEffect, audioMasterWantMidi, 0, 0, nullptr, 0.0f); } else {