summaryrefslogtreecommitdiffhomepage
path: root/MIDI.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-03 21:02:11 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-03 21:02:11 +0100
commit22cdfccb11679d6ae241653c9cb92c32f4fc1fde (patch)
tree16b0f8401e22c99e8d953eea14ac57a2fe50c67a /MIDI.h
parent6bf4770e950299da92952f2965cccf86a903fc9f (diff)
Integrate ClickStream into PCM
Diffstat (limited to 'MIDI.h')
-rw-r--r--MIDI.h7
1 files changed, 7 insertions, 0 deletions
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);