diff options
Diffstat (limited to 'MIDI.h')
-rw-r--r-- | MIDI.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -158,6 +158,13 @@ public: } } + void flush() + { + while (event_ready()) { + (void) read(); + } + } + void wait_for_event() { int result = poll(pfd, npfd, 10000); |