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:
| Value | Description |
|---|---|
| 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.