snd_seq_get_queue_status

Name

snd_seq_get_queue_status -- obtain the running state of the queue

Synopsis

int snd_seq_get_queue_status(snd_seq_t *handle, int q, snd_seq_queue_status_t *status);

Description

Obtains the running state of the specified queue q. The resultant data is stored on the following structure.

/* queue info/status */
typedef struct {
	int queue;			/* queue id */
	int events;			/* read-only - queue size */
	snd_seq_tick_time_t tick;	/* current tick */
	snd_seq_real_time_t time;	/* current time */
	int running;			/* running state of queue */
	int flags;			/* various flags */
	char reserved[64];		/* for the future */
} snd_seq_queue_status_t;
The events field contains the number of events stored in this queue. The tick and time fields contain the current tick and real-time values, respectively. The running field shows the boolean running state, either 0 or 1. The flags contains various flags. At this moment, it is not used yet.

Function returns zero if successful. A negative value is returned if an error occurs.