]> git.tuebingen.mpg.de Git - paraslash.git/commit
Alsa timing improvements.
authorAndre Noll <maan@systemlinux.org>
Sat, 29 Aug 2009 20:17:55 +0000 (22:17 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 29 Aug 2009 20:17:55 +0000 (22:17 +0200)
commit44b21efca6080fcc88830facd98e50e4c5e66505
tree87719187e980cf075454a013e32f8f83f6966563
parentbd55215eb1f1c8d041170743dcee5e069d5706b8
Alsa timing improvements.

This moves the computation of the select timeout from
alsa_write_post_select() to alsa_write_pre_select(). The code now
computes when the next buffer underrun would occur and uses that
value to set the timeout for the next select call. This decreases
the number of writes to the alsa handle and therefore also the CPU
usage of para_write/para_audiod.
alsa_write.c