Dmitry Baikov wrote:
Hi!
I can't get realtime timestamping for input events to work.
Queue is initialized as:
queue = snd_seq_alloc_queue(seq);
snd_seq_start_queue(seq, queue, 0);
Port is created with:
snd_seq_port_info_set_timestamping(pinfo, 1);
snd_seq_port_info_set_timestamp_queue(pinfo, queue);
snd_seq_port_info_set_timestamp_real(pinfo, 1);
But ev.time.time is always zero.
What's wrong?
Are you missing assinging the pinfo to the port with
snd_seq_set_port_info() ? I think the correct sequence should be this one:
snd_seq_get_port_info(seq, port, pinfo);
snd_seq_port_info_set_timestamping(pinfo, 1);
snd_seq_port_info_set_timestamp_queue(pinfo, queue);
snd_seq_port_info_set_timestamp_real(pinfo, 1);
snd_seq_set_port_info(seq, port, pinfo);
Bye.
--
rncbc aka Rui Nuno Capela
rncbc(a)rncbc.org