diff options
author | Roland Reichwein <mail@reichwein.it> | 2025-01-11 12:25:03 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2025-01-11 12:25:03 +0100 |
commit | 0cb4b08d406caff8cd2081ddb09bceb74d4e3a16 (patch) | |
tree | 0e62390844d862eb7d2ce456ceea4f49890cd07a /MIDI.cpp | |
parent | 171aa5502cfcac1abc5315c8792521790195e4a9 (diff) |
MIDI bandwidth monitor
Diffstat (limited to 'MIDI.cpp')
-rw-r--r-- | MIDI.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -149,7 +149,7 @@ void MIDI::process(snd_seq_event_t *ev) log_cout << fmt::format("[{}] Unknown MIDI event: {}", timestamp_from_event(ev), ev->type) << std::endl; } - signal_count_events(); + signal_count_events(snd_seq_event_length(ev)); } void MIDI::flush() @@ -172,4 +172,3 @@ void MIDI::wait_for_event() throw std::runtime_error("Poll unsuccessful"); } } - |