<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - pa_simple_get_latency() reports latency inaccurately"
href="https://bugs.freedesktop.org/show_bug.cgi?id=81075#c15">Comment # 15</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - pa_simple_get_latency() reports latency inaccurately"
href="https://bugs.freedesktop.org/show_bug.cgi?id=81075">bug 81075</a>
from <span class="vcard"><a class="email" href="mailto:tanuk@iki.fi" title="Tanu Kaskinen <tanuk@iki.fi>"> <span class="fn">Tanu Kaskinen</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>