[pulseaudio-tickets] [Bug 81075] pa_simple_get_latency() reports latency inaccurately
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sat Jun 17 16:37:51 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=81075
--- Comment #15 from Tanu Kaskinen <tanuk at iki.fi> ---
Awesome, thanks for the fix! I applied it to the "next" branch, so it won't be
in the next release (we're in the freeze phase), but it will be in PA 12.0.
There's a problem with integer overflowing, though. pa_usec_t is an unsigned
type, so I don't think it's a good idea to store negative values in it (even if
it seems to work pretty well). I tried to fix it, but when I tested my fix, the
results were worse. My fix included changing the code so that if the latency is
negative, pa_simple_get_latency() returns zero (because it doesn't have a
mechanism for reporting negative latencies), and it looks like
pa_stream_get_latency() is reporting negative latencies even when it should
have no reason to do so, and I'm trying to figure what's going on.
--
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20170617/0b0dd567/attachment.html>
More information about the pulseaudio-bugs
mailing list