Lee Revell wrote:

Cannot work.  Nothing you do to and ALSA config file has any effect on
apps that use the in-kernel OSS emulation as they are bypassing alsa-lib
completely.

The only option if you want to use all the advanced featured of ALSA is
not to use the in-kernel OSS emulation.  It's a crutch for old broken
apps.

Unfortunately, an old, broken -- and proprietary -- app is what I'm having to deal with. But I think I can live without /dev/dspX for my purposes.

I cooked up a .asoundrc I hope some here will find useful:

----------------------------------------------------------------------
pcm.fileout {
   type file
   file /home/jcastro/myfile
   slave.pcm null
}

pcm_slave.sl3 {
   pcm "fileout"
   format S16_LE
   channels 1
   rate 48000
}

pcm.complex_convert {
   type plug
   slave sl3
}
----------------------------------------------------------------------

If you play anything to "complex_convert", regardless of format, 48K slin mono gets written at /home/jcastro/myfile. You can turn the resulting file into something useful by prepending a .AU header as described in http://astronomy.swin.edu.au/~pbourke/dataformats/au/

Now I want to do the opposite -- running a recording application and have it get its "microphone" input from a file, no matter what format+rate is requested. I tried to run "arecord -D complex_convert myfile.wav" with the definitions above but it didn't work -- it would block indefinitely. Suggestions?


-------------------------------------------------------
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