mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05: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;
|
bufferattr.prebuf = (uint32_t) -1;
|
||||||
|
|
||||||
if (impl->mode == MODE_CAPTURE) {
|
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,
|
res = pa_stream_connect_record(impl->pa_stream,
|
||||||
remote_node_target, &bufferattr,
|
remote_node_target, &bufferattr,
|
||||||
|
|
@ -560,7 +560,7 @@ static int create_pulse_stream(struct impl *impl)
|
||||||
PA_STREAM_ADJUST_LATENCY |
|
PA_STREAM_ADJUST_LATENCY |
|
||||||
PA_STREAM_AUTO_TIMING_UPDATE);
|
PA_STREAM_AUTO_TIMING_UPDATE);
|
||||||
} else {
|
} 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,
|
res = pa_stream_connect_playback(impl->pa_stream,
|
||||||
remote_node_target, &bufferattr,
|
remote_node_target, &bufferattr,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue