chiark / gitweb /
server/speaker.c: Only copy whole frames into collection buffers.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 19 May 2013 02:48:25 +0000 (03:48 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 22 May 2013 23:46:49 +0000 (00:46 +0100)
commit05577e6c12009f025c1a0e8a4aec956e6fa914f6
treedffad3423b5cf4f5ac6fd58ea3039d99a067c031
parentc0aec5a8c25c83def2a0515e7cf9b8111196b724
server/speaker.c: Only copy whole frames into collection buffers.

At least the ALSA playback function gets into a real mess if a buffer
contains a partial frame: it leaves the partial frame behind, but is
called again until the buffer is empty, resulting in an infinite loop.

Thanks for Joe Birr-Pixton for helping diagnose this bug and coming up
with the right fix.
server/speaker.c