From e303485757cb9cfaf67721911b5e85fdb1008b38 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 2 Nov 2017 16:49:56 +0100 Subject: [PATCH] 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. --- spa/plugins/alsa/alsa-sink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/alsa/alsa-sink.c b/spa/plugins/alsa/alsa-sink.c index 4a072c029..b65fe4231 100644 --- a/spa/plugins/alsa/alsa-sink.c +++ b/spa/plugins/alsa/alsa-sink.c @@ -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,