From: Andre Noll Date: Tue, 26 Jul 2011 18:51:24 +0000 (+0200) Subject: alsa: Select on the alsa poll fd. X-Git-Tag: v0.4.8~5^2 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=8c8d095eaf5207d4446c561bf26f0eecd2d5f505;hp=8c8d095eaf5207d4446c561bf26f0eecd2d5f505;ds=sidebyside alsa: Select on the alsa poll fd. This teaches the post_select method of the alsa writer to get a control file descriptor from the alsa library via snd_pcm_poll_descriptors(). This file descriptor becomes readable when a buffer period has passed and new samples can be written to the alsa handle. We add the fd to the read fd set so that the select() call of the main scheduler loop returns just in time. This is more precise and simpler than the previous approach to compute the time until a buffer underrun occurs. ---