summaryrefslogtreecommitdiffhomepage
path: root/MIDI.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-11 12:25:03 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-11 12:25:03 +0100
commit0cb4b08d406caff8cd2081ddb09bceb74d4e3a16 (patch)
tree0e62390844d862eb7d2ce456ceea4f49890cd07a /MIDI.cpp
parent171aa5502cfcac1abc5315c8792521790195e4a9 (diff)
MIDI bandwidth monitor
Diffstat (limited to 'MIDI.cpp')
-rw-r--r--MIDI.cpp3
1 files changed, 1 insertions, 2 deletions
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");
}
}
-