snd_seq_flush_output

Name

snd_seq_flush_output -- flush output event buffer

Synopsis

int snd_seq_flush_output(snd_seq_t *handle);

Description

Transfers the buffered output events to sequencer. Function returns zero if successful, or a negative error code. If the output memory pool of the current client on kernel space becomes full during flush, the function falls into sleep in blocking mode, or returns -EAGAIN error in non-blocking mode. If an error occurs, the transfer stops at the error event. The error even still remains on buffer. In order to remove such an error event, use snd_seq_extract_output.

See Also

snd_seq_event_output, snd_seq_extract_output, snd_seq_drain_output, snd_seq_event_output_pending