Please don't hit me over the head. I'll freely admit I'm dense. I couldn't make heads or tails of the .asoundrc documentation (or the many other links I found on the Web) if my life depended on it. I want to create a virtual soundcard that is actually a file.

Eventually I was able to move away from square one. I created the following .asoundrc in my home dir:

pcm.fileout {
type file
slave.pcm "hw:0"
file /home/jcastro/alsaout.raw
}

And aplay works as it should when I use "-D fileout". A file is generated. Now I want to do the following four things:

1) Free the slave -- I want to get rid of the physical sound card, and still be able to "play to files". But if I take out the "slave" line, aplay complains about the lack of it and doesn't play.

2) Convert formats -- I want the generated file to have a fixed encoding X, bitrate Y, stereo or mono, at my will, regardless of how the application (aplay in my tests) programs the (pseudo-) soundcard.

3) Use an existing raw file to simulate input (mic) while another simulates, as already done above, output (speakers).

4) Have the resulting virtual soundcard usable via OSS, by way of the existing kernel emulation. Would defining it in /etc/alsa.conf instead of my home dir help?

Can the above be done?

Thanks,
Juan


-------------------------------------------------------
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-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to