mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
stream: use latency of minreq/2
Because we don't buffer tlength on the server side, we need to use half of the minreq as headroom in the server.
This commit is contained in:
parent
1509b51966
commit
0870fc8673
1 changed files with 1 additions and 1 deletions
|
|
@ -849,7 +849,7 @@ static int create_stream(pa_stream_direction_t direction,
|
|||
|
||||
props = (struct pw_properties *) pw_stream_get_properties(s->stream);
|
||||
pw_properties_setf(props, "node.latency", "%u/%u",
|
||||
s->buffer_attr.minreq / stride, sample_rate);
|
||||
(s->buffer_attr.minreq / 2) / stride, sample_rate);
|
||||
pw_properties_set(props, PW_NODE_PROP_MEDIA, "Audio");
|
||||
pw_properties_set(props, PW_NODE_PROP_CATEGORY,
|
||||
direction == PA_STREAM_PLAYBACK ?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue