snd_seq_get_queue_info

Name

snd_seq_get_queue_info -- obtain queue attributes

Synopsis

int snd_seq_get_queue_info(snd_seq_t *handle, int q, snd_seq_queue_info_t *info);

Description

Obtains the information of the specified queue with an id of q argument. The resultant data is stored on info argument.

/* queue information */
typedef struct {
	int queue;			/* queue id */
	int owner;			/* client id for owner of the queue */
	int locked:1;			/* timing queue locked for other queues */
	char name[64];			/* name of this queue */
	char reserved[64];		/* for future use */
} snd_seq_queue_info_t;

typedef snd_seq_queue_info_t snd_seq_queue_owner_t; /* alias */
The queue field is the id number of the queue. The owner field is the client id which owns this queue. The locked field holds a flag which indicates the lock status. If the queue is locked (as default), only owner client may control queue, e.g. to start, stop, change tempo, and so on.

Function returns zero if successful. Otherwise it returns a negative error code.

See Also

snd_seq_set_queue_info