From e0614246f5e276bad021def0113b86d820ab9249 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 22 Sep 2022 11:58:14 +0200 Subject: [PATCH] pulse-server: set fragsize as latency Reducing the latency is just papering over the issue in #2702. The real fix is to limit the blocksize to the fragsize like what is done in 00a234daf24914c475d17059b943d85361607d20 Reducing the latency then also causes regressions like #2715 so don't do that anymore. Fixes #2715 --- src/modules/module-protocol-pulse/pulse-server.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/module-protocol-pulse/pulse-server.c b/src/modules/module-protocol-pulse/pulse-server.c index 3e7d4767b..636da0d97 100644 --- a/src/modules/module-protocol-pulse/pulse-server.c +++ b/src/modules/module-protocol-pulse/pulse-server.c @@ -685,8 +685,7 @@ static uint64_t fix_record_buffer_attr(struct stream *s, struct buffer_attr *att if (attr->maxlength < attr->fragsize * 4) attr->maxlength = attr->fragsize * 4; - /* pulseaudio configures half the fragsize as latency in the source. */ - latency = attr->fragsize / 2; + latency = attr->fragsize; lat->num = latency / frame_size; lat->denom = rate;