snd_seq_open

Name

snd_seq_open -- open a sequencer client

Synopsis

int snd_seq_open(snd_seq_t **handle_return, intmode);

Description

Creates a new handle and opens a connection to the kernel sequencer interface. After a client is created successfully, an event with SND_SEQ_EVENT_CLIENT_START is broadcasted to announce port.

The open mode takes one of the following values:

ValueDescription
SND_SEQ_OPEN_OUT Opens a client as write-only. The client doesn't receive any event inputs.
SND_SEQ_OPEN_IN Opens a client as read-only. The client can't send any events to others.
SND_SEQ_FILTER_BOUNCE Opens a client as read/write. The client can both receive and send events.

Non-blocking flag (O_NONBLOCK) can be used together with the flags above, although the blocking behavior can be changed later via snd_seq_block_mode.

Function returns zero if successful, otherwise it returns an error code.

See Also

snd_seq_close, snd_seq_block_mode