node: add suport for quantum updates

When the node latency property is changed, trigger a graph recalc
to set the new quantum if needed.

Also update the driver quantum when unassigned nodes are assigned
to a driver.
This commit is contained in:
Wim Taymans 2019-08-30 17:00:26 +02:00
parent 001c0a5217
commit 0f9594e119
4 changed files with 34 additions and 18 deletions

View file

@ -490,6 +490,7 @@ struct pw_node {
struct pw_loop *data_loop; /**< the data loop for this node */
uint32_t quantum_size; /**< desired quantum */
uint32_t quantum_current; /**< current quantum for driver */
struct spa_source source; /**< source to remotely trigger this node */
struct pw_memblock *activation;
struct {