summaryrefslogtreecommitdiffhomepage
path: root/MIDI.cpp
diff options
context:
space:
mode:
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");
}
}
-