]> git.tue.mpg.de Git - paraslash.git/commit
Alsa improvement and fixes.
authorAndre Noll <maan@systemlinux.org>
Mon, 4 Jan 2010 22:11:32 +0000 (23:11 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 4 Jan 2010 22:11:32 +0000 (23:11 +0100)
commit015055963d095abd0e153832f5b3f0fda3ac8306
treef7f9c1dd0ca2bb609ab933c1ceda14180e231aab
parent03683166610b241183b3cdb311069c96144fa53e
Alsa improvement and fixes.

Wait until pending frames are played.

The old code was buggy because snd_pcm_drain() always fails on a
non-blocking fd. We therefore called snd_pcm_close() while frames
for playback are still availabe, causing the last few frames being
skipped.
alsa_write.c
error.h