From 0cb4b08d406caff8cd2081ddb09bceb74d4e3a16 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 11 Jan 2025 12:25:03 +0100 Subject: MIDI bandwidth monitor --- MIDI.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'MIDI.cpp') diff --git a/MIDI.cpp b/MIDI.cpp index 4713a55..1e43a96 100644 --- a/MIDI.cpp +++ b/MIDI.cpp @@ -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"); } } - -- cgit v1.2.3