<html><head></head><body>P.S.: it's simple maths, really.<br><br>If we neglect drift between RTC and DAC, and assume a fixed period T, then the correct delay until more write space is the next audio tick, at n.T + t0, where n is an integer.<br><br>T is known from ALSA PCM configuration. But the initial time t0 (or equivalently, the phase) is not and I don't know any way to observe it other than poll() et al.<br><br>Wait less than necessary and you might have no space. Wait more and you risk an underrun.<br><br><div class="gmail_quote">Le 12 mars 2019 21:20:12 GMT+02:00, "Rémi Denis-Courmont" <remi@remlab.net> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Yeah true but it is still broken like I explained a few days ago. The correct way to wait for buffer room is to poll OUT, AFAIK (like was done before).</blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>