mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
If the ALSA device supports granular pointer reporting, we end up in a situation where we write out a bunch of data, iterate, and then find a small amount of data available in the buffer (consumed while we were writing data into the available buffer space). We do this 10 times before quitting the write loop. This is inefficient in itself, but can also have wider consequences. For example, with module-combine-sink, this will end up pushing the same small chunks to all other devices too. Given both of these, it just makes sense to not try to write out data unless a minimum threshold is available. This could potentially be a fragment, but it's likely most robust to just work with a fraction of the total available buffer size. |
||
|---|---|---|
| .. | ||
| mixer | ||
| alsa-mixer.c | ||
| alsa-mixer.h | ||
| alsa-sink.c | ||
| alsa-sink.h | ||
| alsa-source.c | ||
| alsa-source.h | ||
| alsa-ucm.c | ||
| alsa-ucm.h | ||
| alsa-util.c | ||
| alsa-util.h | ||
| module-alsa-card.c | ||
| module-alsa-sink.c | ||
| module-alsa-source.c | ||