www.cendio.com
Bug 5903 - scratching noise when first using audio in many sessions
: scratching noise when first using audio in many sessions
Status: NEW
: ThinLinc
Sound
: pre-1.0
: PC Unknown
: P2 Normal
: LowPrio
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2016-05-20 11:14 by
Modified: 2018-08-21 13:23 (History)
Acceptance Criteria:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From cendio 2016-05-20 11:14:34
The tunnel module in PulseAudio has handling to ensure we enforce a minimum
latency in order to avoid underruns. It works well enough, but it has some room
for improvement that could reduce the number of underruns experienced even
further:

 a) We don't look at the downstream sink at all when setting the limit. There's
not much point trying to request a latency lower than what the downstream
server will give us. Unfortunately the introspection API doesn't give us the
proper information directly, so we may be forced to infer it.

 b) We don't look at the currently configured latency when an underrun actually
happens. If an underrun happened at with 10 ms configured latency, increasing
the minimum from 2 to 4 ms is not going to help much.

There are also some small underruns happening without any server logging
anything (noticed when solving bug 5902). Unsure what's going on there, but
perhaps we can work around it by configuring a larger minimum latency when
starting. Right now it is 0 ms and increasing it to just 10 ms seems to make
the problem go away.
------- Comment #1 From cendio 2016-05-20 13:06:37 -------
There is also:

 c) Buffer latency should also probably be larger than the RTT (which is
measured and known)