13
0

Add debug information for coreMIDI events

This commit is contained in:
Robin Gareus 2022-09-22 00:42:56 +02:00
parent 56c5db9115
commit 9b65be0e17
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -298,6 +298,11 @@ CoreMidiIo::recv_event (uint32_t port, double cycle_time_us, uint64_t &time, uin
}
_input_queue[port].erase(it);
return s;
} else {
#ifndef NDEBUG
uint64_t dt = AudioConvertHostTimeToNanos((*it)->timeStamp - end);
printf("Ignored future Midi Event. dt:%.2fms\n", dt * 1e-6);
#endif
}
++it;