mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
alsa: various improvements
Remove some magic constants that are not needed anymore with the headroom. Clamp the error to some reasonable value so that we don't adjust the rate too much but still apply all of the correction calculated by the dll. Remove the bandwidth adjustment. Also update the matching and resample fields when we reassign the node to a new driver. This could cause the new follower to not activate the adaptive resampler and get out of sync.
This commit is contained in:
parent
c8804c3d6d
commit
8981e11c53
2 changed files with 40 additions and 31 deletions
|
|
@ -173,9 +173,9 @@ struct state {
|
|||
uint64_t base_time;
|
||||
|
||||
uint64_t underrun;
|
||||
double safety;
|
||||
|
||||
struct spa_dll dll;
|
||||
double max_error;
|
||||
};
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue