mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 00:04:56 +01:00
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:
parent
1e4559805f
commit
1a3634f3b9
1 changed files with 1 additions and 1 deletions
|
|
@ -573,7 +573,7 @@ VSTPlugin::connect_and_run (BufferSet& bufs,
|
||||||
bool valid = false;
|
bool valid = false;
|
||||||
const uint32_t buf_index_in = in_map.get(DataType::MIDI, 0, &valid);
|
const uint32_t buf_index_in = in_map.get(DataType::MIDI, 0, &valid);
|
||||||
if (valid) {
|
if (valid) {
|
||||||
v = bufs.get_vst_midi (0);
|
v = bufs.get_vst_midi (buf_index_in);
|
||||||
}
|
}
|
||||||
valid = false;
|
valid = false;
|
||||||
const uint32_t buf_index_out = out_map.get(DataType::MIDI, 0, &valid);
|
const uint32_t buf_index_out = out_map.get(DataType::MIDI, 0, &valid);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue