mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
Replace force_rate with force_quantum. We use force_rate when we need to play an IEC958 or a DSD format but it does not make sense to just force the rate without also forcing the duration. This is also what happens when doing IRQ based scheduling, we then force both the duration and rate of the graph so we can reuse this logic. Also when forcing a quantum, take into account the suggested duration and rate of the graph and scale that with the currently configured rate for the period size. This gives a quantum that will match the requested rate better. This is important for the DSD, where rate are very high and we want the period size to be something reasonable relative to the selected graph rate. For batch devices (and when using a timer) we also configure a period size that is half the duration of the quantum, to make sure we get some headroom. We however need to force the full duration as the quantum, so keep track of this scaling and apply when calculating the duration. |
||
|---|---|---|
| .. | ||
| examples | ||
| include | ||
| include-private/spa-private | ||
| lib | ||
| plugins | ||
| tests | ||
| tools | ||
| meson.build | ||