Read package:alsa-seq
Wait until new input is available or new output may be drained
Wait for new input to be available from the sequencer (even if there
is already input in the buffer)
Wait until new output may be drained from the buffer to the sequencer
(even if the output buffer is already empty)