Files
tubestation/dom/media/driftcontrol
Karl Tomlinson 32feff8698 Bug 1890467 consider buffering level variation in more measurements when deciding whether to reduce desired buffering r=pehrsons
Instead of once a second, buffering level measurements are performed after
each output packet for which an input packet has recently arrived.

AudioDriftCorrection::RequestFrames() targets desired buffering at
13/10 * MeasuredSourceLatency() if actual buffering stays near desired.
20% less than this is 104/100 * MeasuredSourceLatency().  When input packets
are much larger than output packets, then when this much is buffered after an
input packet arrives, then the buffer was close to underruning before the
packet arrived.

Differential Revision: https://phabricator.services.mozilla.com/D215489
2024-07-11 22:28:15 +00:00
..