[alsa-devel] rawmidi timestamps
Hi,
thanks for replying the "blocking read" question - it works fine with poll(). I'm using its timeout mechanism to bail out every 200msecs of inactivity.
I wondered what snd_rawmidi_status_get_tstamp() is meant to return? Briefly checking out the driver midlevel, the timestamp is just ignored and setmem'ed to 0, or did I miss anything?
Thanks, Florian
Florian wrote:
I wondered what snd_rawmidi_status_get_tstamp() is meant to return?
The "start timestamp".
Since there aren't any timestamps for the actual MIDI bytes, this value wouldn't be very useful.
Briefly checking out the driver midlevel, the timestamp is just ignored and setmem'ed to 0
Indeed.
If we'd define this timestamp to be relative to the start time, its value would be, by definition, zero. ;-)
Regards, Clemens
participants (2)
-
Clemens Ladisch
-
Florian