The Advanced Linux Sound Architecture (ALSA) - library
Find a file
Juan Carlos Castro y Castro 1d80c5b901 Addition of "infile" parameter (virtual mic) to the file plugin
When this new parameter is specified, the behavior of opening a file PCM
for input is changed to the following: reads from the device, instead of
being passed down to the slave PCM, will read the raw data from the
specified file. No file writes will take place in this case. In the
absence of this parameter, previous behavior is unchanged.

The input file name and descriptor are kept in the snd_pcm_file_t struct
in a manner analogous to the already existing output file parameter.

TODO:

(1) Only interleaved reads (snd_pcm_file_readi) have been implemented
for now.

(2) File read()'s that return a number of bytes that's not a multiple of
the frame size will result in data loss (choppiness). The rbuf,
rbuf_size_bytes, and rbuf_used_bytes members of the snd_pcm_file_t
struct will be used to address this problem in the future.

(3) Mind whether the PCM was opened in blocking mode. If so, we'll have
to loop until the buffer has been filled with read()'s.

Signed-off-by: Juan Carlos Castro y Castro <jcastro@vialink.com.br>
2006-05-19 18:26:41 +02:00
alsalisp Don't install alsalisp 2006-04-12 12:40:06 +02:00
aserver Terminate long_options array 2004-09-28 17:22:33 +00:00
doc Add detailed documentation for external control plugin SDK 2005-06-13 13:19:03 +00:00
include Remove enum from kernel API 2006-05-10 16:27:14 +02:00
modules Fix compile warnings 2005-12-16 18:43:49 +00:00
src Addition of "infile" parameter (virtual mic) to the file plugin 2006-05-19 18:26:41 +02:00
test pcm_min.c example - corrected comment 2006-01-10 09:58:15 +00:00
utils Changed permissions for scripts and added .hgignore file 2006-04-06 19:14:01 +02:00
.hgignore Fix .hgignore 2006-04-12 12:29:35 +02:00
.hgtags Added tag v1.0.11 for changeset ae6753322b638dc95de4ab900d21e8eff14f5952 2006-04-19 12:29:47 +02:00
acinclude.m4 fixed for the recent autoconf. 2004-01-26 15:52:17 +00:00
ChangeLog * update to libtool 1.3.3 1999-07-22 12:18:42 +00:00
configure.in release 1.0.11 2006-04-19 12:29:46 +02:00
COPYING Updated GNU GPL license (address). 2001-12-30 09:22:54 +00:00
cvscompile Changed permissions for scripts and added .hgignore file 2006-04-06 19:14:01 +02:00
hgcompile Add hgcompile script and fix INSTALL document 2006-05-12 15:33:44 +02:00
INSTALL Add hgcompile script and fix INSTALL document 2006-05-12 15:33:44 +02:00
Makefile.am Add hgcompile script and fix INSTALL document 2006-05-12 15:33:44 +02:00
MEMORY-LEAK Initial version 2003-02-04 14:56:07 +00:00
NOTES Add description about non-blocking behavior 2006-02-17 20:51:12 +00:00
TODO Added snd_config_load_override(). 2002-01-09 21:28:15 +00:00