impl-node: rework quantum and max_quantum handling

Rework the quantum and max_quantum handling. Work directly with the
latency fractions and calculate the final quantum size until we know
the samplerate.
This commit is contained in:
Wim Taymans 2021-07-30 11:38:53 +02:00
parent 7bec96640c
commit 6acf72dc30
3 changed files with 53 additions and 45 deletions

View file

@ -701,9 +701,7 @@ struct pw_impl_node {
struct pw_loop *data_loop; /**< the data loop for this node */
struct spa_fraction latency; /**< requested latency */
uint32_t quantum_size; /**< desired quantum */
struct spa_fraction max_latency; /**< maximum latency */
uint32_t max_quantum_size; /**< max supported quantum */
struct spa_source source; /**< source to remotely trigger this node */
struct pw_memblock *activation;
struct {