mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -05:00
Don't just limit the max delay of samples we keep in the ALSA ringbuffer to the buffer_size but to half of it. Make this into a max_delay variable. If we have a buffer size of 8192 samples and a headroom of 8192 samples, when capturing, we would wait for the ringbuffer to contain at least 8192 samples, which would always xrun. When we limit the size to half, we can still read the data without xruns. Fixes #2972 |
||
|---|---|---|
| .. | ||
| examples | ||
| include | ||
| plugins | ||
| tests | ||
| tools | ||
| meson.build | ||