mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
module-pulse-tunnel: set the bufferattr right
tlength for playack and fragsize for capture. See #1434
This commit is contained in:
parent
09ee977141
commit
9f57341699
1 changed files with 2 additions and 2 deletions
|
|
@ -552,7 +552,7 @@ static int create_pulse_stream(struct impl *impl)
|
|||
bufferattr.prebuf = (uint32_t) -1;
|
||||
|
||||
if (impl->mode == MODE_CAPTURE) {
|
||||
bufferattr.tlength = pa_usec_to_bytes(DEFAULT_LATENCY_USEC, &ss);
|
||||
bufferattr.fragsize = pa_usec_to_bytes(DEFAULT_LATENCY_USEC, &ss);
|
||||
|
||||
res = pa_stream_connect_record(impl->pa_stream,
|
||||
remote_node_target, &bufferattr,
|
||||
|
|
@ -560,7 +560,7 @@ static int create_pulse_stream(struct impl *impl)
|
|||
PA_STREAM_ADJUST_LATENCY |
|
||||
PA_STREAM_AUTO_TIMING_UPDATE);
|
||||
} else {
|
||||
bufferattr.fragsize = pa_usec_to_bytes(DEFAULT_LATENCY_USEC, &ss);
|
||||
bufferattr.tlength = pa_usec_to_bytes(DEFAULT_LATENCY_USEC, &ss);
|
||||
|
||||
res = pa_stream_connect_playback(impl->pa_stream,
|
||||
remote_node_target, &bufferattr,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue