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:
Value | Description |
---|---|
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. |
Function returns zero if successful, otherwise it returns an error code.