diff --git a/libs/ardour/vst_info_file.cc b/libs/ardour/vst_info_file.cc index f9b731e240..a978f4e7d3 100644 --- a/libs/ardour/vst_info_file.cc +++ b/libs/ardour/vst_info_file.cc @@ -530,17 +530,13 @@ bool vstfx_midi_input (VSTState* vstfx) { AEffect* plugin = vstfx->plugin; - int const vst_version = plugin->dispatcher (plugin, effGetVstVersion, 0, 0, 0, 0.0f); + /* should we send it VST events (i.e. MIDI) */ - if (vst_version >= 2) { - /* should we send it VST events (i.e. MIDI) */ - - if ((plugin->flags & effFlagsIsSynth) - || (plugin->dispatcher (plugin, effCanDo, 0, 0, const_cast ("receiveVstEvents"), 0.0f) > 0) - || (plugin->dispatcher (plugin, effCanDo, 0, 0, const_cast ("receiveVstMidiEvents"), 0.0f) > 0) - ) { - return true; - } + if ((plugin->flags & effFlagsIsSynth) + || (plugin->dispatcher (plugin, effCanDo, 0, 0, const_cast ("receiveVstEvents"), 0.0f) > 0) + || (plugin->dispatcher (plugin, effCanDo, 0, 0, const_cast ("receiveVstMidiEvents"), 0.0f) > 0) + ) { + return true; } return false;