Hi Fons!
Feb 22 2023, Fons Adriaensen has written:
...
This is very strange:

  miss_time = now - wakeup;
  wakeup = now + (delta - miss_time);

Which just means:

  wakeup += delta;

So it's not wrong, just confusing by suggesting this
somehow compensates for the previous tick being late.
It doesn't, nor should that be done.
...
Thanks Fons! I was really confused about that myself. Mixing up the
mechanism of sleeping for a specified duration and sleeping until a
specified point in time.

Best wishes,

Jeanette

--
 * Website: http://juliencoder.de - for summer is a state of sound
 * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
 * Audiobombs: https://www.audiobombs.com/users/jeanette_c
 * GitHub: https://github.com/jeanette-c

With you I get so high
Lost in the crystal sky
You are this melody
That's where you take me <3
(Britney Spears)
_______________________________________________
Linux-audio-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to