int snd_seq_setpos_queue
(snd_seq_t *handle, int q, snd_seq_timestamp_t *rtime, snd_seq_event_t *ev);
Resets the queue position by sending SND_SEQ_EVENT_SETPOS_TICK and SND_SEQ_EVENT_SETPOS_TIME events to the queue q. The rtime parameter must contain proper values for both real-time and tick.
The function stops the queue once before changing the queue position to ensure that both real-time and tick positions are synchronized. Then the timer is continued automatically.
If ev argument is NULL, a temporary event record is used and delivered immediately. Otherwise, the given event record is used and its flags are evaluated.
Function returns zero if successful, or a negative error code.