alsa: suggest ringbuffer of max-latency size

With a ringbuffer of max-latency size we never receive more data than
the max-latency, which is exactly what we want.
This commit is contained in:
Wim Taymans 2017-11-02 16:49:56 +01:00
parent 8c77332f25
commit e303485757

View file

@ -388,7 +388,7 @@ impl_node_port_enum_params(struct spa_node *node,
":", t->param_alloc_meta_enable.type, "I", t->meta.Ringbuffer,
":", t->param_alloc_meta_enable.size, "i", sizeof(struct spa_meta_ringbuffer),
":", t->param_alloc_meta_enable.ringbufferSize, "iru",
this->props.min_latency * this->frame_size,
this->props.max_latency * this->frame_size,
2, this->props.min_latency * this->frame_size,
this->period_frames * this->frame_size,
":", t->param_alloc_meta_enable.ringbufferStride, "i", 0,