Re: A better pcm_file "infile" patch, and a declaration of being miffed.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At Thu, 18 May 2006 13:29:36 -0300,
Juan Carlos Castro y Castro wrote:
> 
> OK, this implements the "infile" parameter of pcm_file in a much cleaner 
> way. Note that the the below new members of snd_pcm_file_t are not used 
> now, but WILL be when I implement protection from fraction-of-frame reads:
> 
>        size_t rbuf_size_bytes;
>        size_t rbuf_used_bytes;
>        char *rbuf;
> 
> Now, the whole reason of this shebang was so I can use the "infile" AND 
> convert rates in the process -- i.e., the app programs its microphone in 
> whatever rate/format it wants, and ALSA converts the sound from the 
> existing format to what the app needs.
> 
> The exact opposite of this already works for output -- I can force a 
> file to be written in the same format, no matter how the app configures 
> its sound output. For this, I use the .asoundrc that's also attached. 
> But it doesn't work for input. Can someone help me?

I guess it works if you point a real mic PCM device as slave but still
using infile?

The patch looks almost OK.  But please don't forget to add the
description of new parameter in the doxygen comment (in \section
pcm_plugins_file Plugin: File), too.

Also, please provide a changelog and a signed-off-by line, e.g.

	The short summary in a line...

	A detailed change log...
	....

	Signed-off-by: Foo Bar <foo@xxxxxxx>


Thanks,

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

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux