]> code.delx.au - pulseaudio/commit
raop: Change socket buffer size handling to avoid playback underruns
authorBryan Gleeson <bryangleeson@yahoo.com>
Fri, 10 Jun 2011 20:02:20 +0000 (13:02 -0700)
committerColin Guthrie <colin@mageia.org>
Wed, 22 Jun 2011 22:15:57 +0000 (23:15 +0100)
commitc8f0a649cf058019f1046c5fc7f6484c864fc954
tree7145671ab9079f92b6f004d1ccdb3530d4e3d055
parentdd9265ac78b56c378bc7ca47920be9d9d93392b7
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.
src/modules/raop/raop_client.c