[pulseaudio-discuss] Question regarding latencies reported by alsa-source and alsa-sink

Georg Chini georg at chini.tk
Sat Jan 16 14:22:50 PST 2016


Hello,

I have been working on a new version of module-loopback for quite a 
while now.
I am also replacing the smoother in alsa-source and alsa-sink to achieve 
more
precise latency reports.
Now I hit a problem, were I am not sure how to solve it. The get_latency 
calls
of alsa-sink and alsa-source truncate the latency to 0 when it becomes 
negative.
Would it be possible to let the calls return negative values?
Due to the error in the initial conditions those values still make sense 
and clipping
them causes massive problems for the rate controller of module-loopback.

If it is not possible to let the calls return negative values, do you 
have any other
idea how to work around the problem?

Regards
               Georg


More information about the pulseaudio-discuss mailing list