LADI
/
spa
1
Fork 0

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 00a234daf2

Reducing the latency then also causes regressions like #2715 so don't
do that anymore.

Fixes #2715
This commit is contained in:
Wim Taymans 2022-09-22 11:58:14 +02:00
parent 71a918fae1
commit e0614246f5
1 changed files with 1 additions and 2 deletions

View File

@ -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;