https://bugs.freedesktop.org/show_bug.cgi?id=64643
Javier Jardón <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Hardware|Other |All Summary|[alsa] Should check for |[alsa] Need to ensure same | |clock is used for smoother | |put and get --- Comment #1 from Javier Jardón <[email protected]> --- When setting the smoother in the alsa modules we use the htimestamp, but when interpolating (using get) we use pa_rtclock. pa_rtclock is not guaranteed to be the same as htimestamp. Specifically in the case where CLOCK_MONOTONIC is not defined, alsa will use getnstimeofday. Also in the case where HAVE_CLOCK_GETTIME is not defined in alsa-lib (can happen in Android) then alsa-lib will not use CLOCK_MONOTONIC. The fix is to use snd_pcm_status to get the time from alsa when calculating latency. A less accurate alternative would be to simply use pa_rtclock_get during the smoother_put. -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug.
_______________________________________________ pulseaudio-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/pulseaudio-bugs
