]> git.tue.mpg.de Git - paraslash.git/commit
alsa_write: Avoid EAGAIN.
authorAndre Noll <maan@systemlinux.org>
Sun, 31 May 2009 10:34:39 +0000 (12:34 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 31 May 2009 10:34:39 +0000 (12:34 +0200)
commite7b866a338a22ad07c8e60d405616a8065be89b1
treedb6d20c69b266aff85cabc271d77e15fa2290e36
parent86fdff38d980c39062764a31f40a2ee2c5854d33
alsa_write: Avoid EAGAIN.

Before writing to the sound device, use snd_pcm_avail_update() to
check how many frames alsa will accept and write only that many
frames.
alsa_write.c