snd_seq_extract_output

Name

snd_seq_extract_output -- remove the event on output buffer

Synopsis

int snd_seq_extract_output(snd_seq_t *handle, snd_seq_event_t **ev);

Description

Removes the first event record on output buffer. If a fatal error occurs during flush, application should remove the relevant event by using this function. If ev argument is not NULL, the event is created using snd_seq_create_event and its pointer is stored on ev. The returned event should be freed using snd_seq_free_event. If ev is NULL, the removed event is lost.

Function returns zero if an event is successfully removed. Otherwise a negative error code is returned.

See Also

snd_seq_flush_output snd_seq_create_event, snd_seq_free_event,