mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-05 04:06:34 -05:00
The Advanced Linux Sound Architecture (ALSA) - library
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> |
||
|---|---|---|
| alsalisp | ||
| aserver | ||
| doc | ||
| include | ||
| modules | ||
| src | ||
| test | ||
| utils | ||
| .hgignore | ||
| .hgtags | ||
| acinclude.m4 | ||
| ChangeLog | ||
| configure.in | ||
| COPYING | ||
| cvscompile | ||
| hgcompile | ||
| INSTALL | ||
| Makefile.am | ||
| MEMORY-LEAK | ||
| NOTES | ||
| TODO | ||