From 22cdfccb11679d6ae241653c9cb92c32f4fc1fde Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 3 Jan 2025 21:02:11 +0100 Subject: Integrate ClickStream into PCM --- MIDI.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'MIDI.h') diff --git a/MIDI.h b/MIDI.h index d71298d..23024c3 100644 --- a/MIDI.h +++ b/MIDI.h @@ -158,6 +158,13 @@ public: } } + void flush() + { + while (event_ready()) { + (void) read(); + } + } + void wait_for_event() { int result = poll(pfd, npfd, 10000); -- cgit v1.2.3