At Fri, 19 May 2006 11:27:38 -0300, Juan Carlos Castro y Castro wrote: > > ---------------------------------------------------------------------- > 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@xxxxxxxxxxxxxx> Thanks, now applied to ALSA HG tree. Takashi ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-devel