alsa-seq: improve timings

Track the position of the clock instead of our own timer.
Implement stop.
This commit is contained in:
Wim Taymans 2019-09-25 10:14:25 +02:00
parent 387b281f5c
commit f0b3ed5257
2 changed files with 30 additions and 9 deletions

View file

@ -146,7 +146,8 @@ struct seq_state {
uint64_t next_time;
uint64_t base_time;
uint64_t queue_time;
uint64_t queue_start;
uint64_t queue_base;
uint64_t clock_base;
unsigned int opened:1;
unsigned int started:1;