From b91e9fbe64f075b2bc929de322ce02c765a012ce Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 21 Jun 2024 12:51:28 -0600 Subject: [PATCH] async MIDI ports run output trace parser scanner if there is one --- libs/ardour/async_midi_port.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/ardour/async_midi_port.cc b/libs/ardour/async_midi_port.cc index 0b38f0966c..7c4effa620 100644 --- a/libs/ardour/async_midi_port.cc +++ b/libs/ardour/async_midi_port.cc @@ -231,9 +231,14 @@ AsyncMIDIPort::write (const MIDI::byte * msg, size_t msglen, MIDI::timestamp_t t * delivered */ + std::shared_ptr tp (trace_parser()); + _parser->set_timestamp (AudioEngine::instance()->sample_time() + timestamp); for (size_t n = 0; n < msglen; ++n) { _parser->scanner (msg[n]); + if (tp) { + tp->scanner (msg[n]); + } } Glib::Threads::Mutex::Lock lm (output_fifo_lock);