snd_seq_get_queue_timer

Name

snd_seq_get_queue_timer -- obtain the queue timer information

Synopsis

int snd_seq_get_queue_timer(snd_seq_t *handle, int q, snd_seq_queue_timer_t *timer);

Description

Obtains the timer information of the specified queue q. The resultant data is stored on the following structure.

/* queue timer info */
typedef struct {
	int queue;			/* sequencer queue */

	/* source timer selection */
	int type;			/* timer type */
	int slave;			/* timer slave type */
	int number;			/* timer number/identification */
	int resolution;			/* timer resolution in Hz */

	char reserved[64];		/* for the future use */
} snd_seq_queue_timer_t;
The type contains the type of timer source, which is one of the followings:

ValueDescription
SND_SEQ_TIMER_MASTER Master timer.
SND_SEQ_TIMER_SLAVE Slave timer.
SND_SEQ_TIMER_MIDI_CLOCK MIDI clock (CLOCK event).
SND_SEQ_TIMER_MIDI_TICK MIDI timer tick (TICK event).

Function returns zero if successful, or a negative error code.

See Also

snd_seq_set_queue_timer