Name
snd_rawmidi_channel_flush, snd_rawmidi_flush_playback, snd_rawmidi_flush_capture -- flush the output or input queue
Synopsis
int snd_rawmidi_channel_flush
(snd_rawmidi_t *handle, int channel);
int snd_rawmidi_flush_output
(snd_rawmidi_t *handle);
int snd_rawmidi_flush_input
(snd_rawmidi_t *handle);
Description
This function flushes the output queue or drains the input queue.
It blocks the program while the all the waiting bytes in kernel output
queue are processed. Function returns zero if successful, otherwise
it returns an error code.