chiark / gitweb /
Bump up default RTP player buffer sizes. Now big enough to keep ALSA
authorRichard Kettlewell <rjk@greenend.org.uk>
Sat, 11 Apr 2009 19:53:12 +0000 (20:53 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sat, 11 Apr 2009 19:53:12 +0000 (20:53 +0100)
commitad535598200d2a32e82d6a063913c7aa857734af
tree65cbcedf62f8d27d0a449e86578317b7fd8f3840
parentc81974493ce7408d3c509d1869aa570071948a44
Bump up default RTP player buffer sizes.  Now big enough to keep ALSA
(first doubling) and ALSA's OSS emulation (second doubling) fed.  The
initial buffer size is still under half a second, and feels close to
instant to this listener.

Also, the player thread now consumes packets immediately rather than
waiting for the next iteration, preventing a race where the (inner)
playing loop at the bottom of main() can terminate unnecessarily
early.

There's bits of debugging code left lying around commented out.  It's
harmless for now!
clients/playrtp.c