13
0

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
This commit is contained in:
Paul Davis 2014-03-10 17:27:47 -04:00
parent 1e4559805f
commit 1a3634f3b9

View File

@ -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);