mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-19 08:57:14 -05:00
alsa: improve headroom calculations
Make a function to recalculate the headroom and call it whenever the resample state of the node can change. When we are IRQ based scheduling but need to resample, we are actually not driving the graph whit IRQ and need to adjust our period size and headroom as if we are using timers.
This commit is contained in:
parent
2e066e6b1e
commit
6b8c267e91
2 changed files with 37 additions and 28 deletions
|
|
@ -218,6 +218,7 @@ struct state {
|
|||
unsigned int sources_added:1;
|
||||
unsigned int auto_link:1;
|
||||
unsigned int linked:1;
|
||||
unsigned int is_batch:1;
|
||||
|
||||
uint64_t iec958_codecs;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue