]> git.sesse.net Git - vlc/commit
ALSA: rewrite capture plugin
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 12 May 2012 16:18:34 +0000 (19:18 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 12 May 2012 16:27:27 +0000 (19:27 +0300)
commit793ac1e6b4b824655dd2fe9051637199c0a328fe
treee6f34f5bd87659d7a02c8993457f94133ac0abec
parent0ef62578e5b6e06e67868e8a9e2ac11d4436b5da
ALSA: rewrite capture plugin

 * use a thread instead of short interval polling,
 * do not assume latency is shorter than a period,
 * negotiate sample format instead automatically,
 * map all known ALSA formats to VLC codecs,
 * negotiate channels and sample rate,
 * partial support for 3-6 channels (missing preferences),
 * negotiate buffer and period times according to caching,
 * tolerate off-by-one period size due to rounding,
 * use the "default" device by default rather than "hw",
 * remove old-style hardware-only suggestions in debug messages.
modules/access/alsa.c