Romain Vimont 4e35761037 Avoid "negative" average buffering
The assumption that underflow and overbuffering are caused by jitter
(and that the delay between the producer and consumer will becaught up)
does not always hold.

For example, if the consumer does not consume at the expected rate (the
SDL calback 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.
2024-02-16 11:53:33 +01:00
..
2023-12-14 17:08:19 +01:00
2024-02-16 11:53:33 +01:00
2023-12-02 12:30:19 +01:00