From 1a3634f3b9c5ab1d35d0717685526fa050e27a11 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 10 Mar 2014 17:27:47 -0400 Subject: [PATCH] use buf_index_in() to identify VST MIDI buffer Probably unnecessary as long we only have 1 MIDI port route, but this at least keeps symmetry with the output side --- libs/ardour/vst_plugin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/vst_plugin.cc b/libs/ardour/vst_plugin.cc index 1eb553c073..52e139db84 100644 --- a/libs/ardour/vst_plugin.cc +++ b/libs/ardour/vst_plugin.cc @@ -573,7 +573,7 @@ VSTPlugin::connect_and_run (BufferSet& bufs, bool valid = false; const uint32_t buf_index_in = in_map.get(DataType::MIDI, 0, &valid); if (valid) { - v = bufs.get_vst_midi (0); + v = bufs.get_vst_midi (buf_index_in); } valid = false; const uint32_t buf_index_out = out_map.get(DataType::MIDI, 0, &valid);