mirror of https://github.com/Genymobile/scrcpy
Avoid negative average buffering
The assumption that underflow and overbuffering are caused by jitter (and that the delay between the producer and consumer will be caught up) does not always hold. For example, if the consumer does not consume at the expected rate (the SDL callback is not called often enough, which is an audio output issue), many samples will be dropped due to overbuffering, decreasing the average buffering indefinitely. Prevent the average buffering to become negative to limit the consequences of an unexpected behavior. PR #4572 <https://github.com/Genymobile/scrcpy/pull/4572>audio_player_atomic.16
parent
c12fdf900f
commit
a7cf4daf3b
Loading…
Reference in New Issue