mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05: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
1 changed files with 1 additions and 2 deletions
|
|
@ -685,8 +685,7 @@ static uint64_t fix_record_buffer_attr(struct stream *s, struct buffer_attr *att
|
||||||
if (attr->maxlength < attr->fragsize * 4)
|
if (attr->maxlength < attr->fragsize * 4)
|
||||||
attr->maxlength = attr->fragsize * 4;
|
attr->maxlength = attr->fragsize * 4;
|
||||||
|
|
||||||
/* pulseaudio configures half the fragsize as latency in the source. */
|
latency = attr->fragsize;
|
||||||
latency = attr->fragsize / 2;
|
|
||||||
|
|
||||||
lat->num = latency / frame_size;
|
lat->num = latency / frame_size;
|
||||||
lat->denom = rate;
|
lat->denom = rate;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue