mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-01 13:44:40 +00:00
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:
parent
71a918fae1
commit
e0614246f5
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue