]> git.sesse.net Git - nageru/commit
Rewrite the ALSA sequencer input loop.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 9 Oct 2016 11:59:00 +0000 (13:59 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 22 Oct 2016 13:16:23 +0000 (15:16 +0200)
commit45aa08dd2f81037860fdd3c5d1115736f7acf1a8
tree4ec154b3631e66c5047464e5ce127bfbd0d74910
parent937b6ab9e4c5d13fe7f7bdcb5a17bf48929f44ce
Rewrite the ALSA sequencer input loop.

Seemingly we can get multiple events in one poll, and we can _not_
just go back to polling again (the poll will hang). I consider this
an ALSA bug, but it's easy to work around, the same way aseqdump
does; just set the sequencer to nonblocking and loop over it
until we get EAGAIN.
midi_mapper.cpp
midi_mapper.h