From: Takashi Iwai Subject: Re: infile patch, changelog & signed-off-by line Date: Fri, 19 May 2006 18:29:39 +0200 Message-ID: References: <446DD5DA.5070809@instant.com.br> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <446DD5DA.5070809@instant.com.br> Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Juan Carlos Castro y Castro Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org 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 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