diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-03-27 11:22:37 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-03-27 11:22:37 -0600 |
commit | dfe383d23a0b97aed684fab27eb3c701f04be0c5 (patch) | |
tree | ee9918c732a7d72f93acb22d41359110367d4a62 /libs/ardour | |
parent | e202b649511e94252c53ff1a15c6aff61467f911 (diff) |
make MIDI tracing work again for ports that are handled using ::read_and_parse_entire_midi_buffer_with_no_speed_adjustment()
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/midi_port.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/ardour/midi_port.cc b/libs/ardour/midi_port.cc index f5068d7f02..b47299bec6 100644 --- a/libs/ardour/midi_port.cc +++ b/libs/ardour/midi_port.cc @@ -213,10 +213,21 @@ MidiPort::read_and_parse_entire_midi_buffer_with_no_speed_adjustment (pframes_t parser.scanner (0x80 | (buf[0] & 0x0F)); /* note off */ parser.scanner (buf[1]); parser.scanner (0x40); /* default (off) velocity */ + + if (_trace_parser) { + _trace_parser->scanner (0x80 | (buf[0] & 0x0F)); + _trace_parser->scanner (buf[1]); + _trace_parser->scanner (0x40); + } } else { for (size_t n = 0; n < size; ++n) { parser.scanner (buf[n]); } + if (_trace_parser) { + for (size_t n = 0; n < size; ++n) { + _trace_parser->scanner (buf[n]); + } + } } } } |