mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
Instead of always renegotiating a new format and buffers when the driver changes, only renegotiate when the converter notifies us of an EnumFormat change. It's possible that changing the driver does not actually change the result of EnumFormat and then we would simply renegotiate to the same format and buffers for nothing. In the audioconvert, check if the target_rate of the new driver has changed. We keep the last value in our own clock so that we don't renegotiate when we are removed from a driver (which sets our own clock as the position). The target rate influences the result of the EnumFormat params when we are resampling and so we need to emit a EnumFormat change. |
||
|---|---|---|
| .. | ||
| examples | ||
| include | ||
| include-private/spa-private | ||
| lib | ||
| plugins | ||
| tests | ||
| tools | ||
| meson.build | ||