mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
When the audioconverter needs more data, let it return NEED_DATA. This can happen before the ports actually have consumed all the input data. For example, then the next cycle would require 1024 samples but there are currently only 16 samples queued, the next cycle will consume the 16 samples and then need another buffer to produce output. For rt streams, this is not a problem because a new buffer will be fetched in the next cycle synchronously. When the stream is async, we can use this NEED_DATA to prefetch a new buffer so that we have one in the next cycle. This fixes hickups with async streams that provide random sized buffers. |
||
|---|---|---|
| .. | ||
| daemon | ||
| examples | ||
| gst | ||
| modules | ||
| pipewire | ||
| tests | ||
| tools | ||
| meson.build | ||