mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
raop: Change socket buffer size handling to avoid playback underruns
When a TCP socket is created the size of the send buffer (SO_SNDBUF) used is determined by the OS, using the net.ipv4.tcp_wmem sysctl parameter. Previously a call to setsockopt set the buffer size to a value that was too small, and that in some cases could result in underruns and choppy playback. This setsockopt call has now been removed so that the value determined by the OS is used unchanged. Note that the value used for the send buffer size is the 2nd value in net.ipv4.tcp_wmem, e.g. if this is set to "4096 65536 8388608" the send buffer size is set to 65536.
This commit is contained in:
parent
dd9265ac78
commit
c8f0a649cf
1 changed files with 0 additions and 1 deletions
|
|
@ -219,7 +219,6 @@ static void on_connection(pa_socket_client *sc, pa_iochannel *io, void *userdata
|
|||
c->fd = pa_iochannel_get_send_fd(io);
|
||||
|
||||
pa_iochannel_set_noclose(io, TRUE);
|
||||
pa_iochannel_socket_set_sndbuf(io, 1024);
|
||||
pa_iochannel_free(io);
|
||||
|
||||
pa_make_tcp_socket_low_delay(c->fd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue