13
0

async MIDI ports run output trace parser scanner if there is one

This commit is contained in:
Paul Davis 2024-06-21 12:51:28 -06:00
parent af9472ecb6
commit bbcaf617c4

View File

@ -231,9 +231,14 @@ AsyncMIDIPort::write (const MIDI::byte * msg, size_t msglen, MIDI::timestamp_t t
* delivered
*/
std::shared_ptr<MIDI::Parser> 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);