For instance, to use pcm.tee, one has to write aplay -D pcm.tee:"slave_pcm_name,file_name" some_file.wav
while aplay -D pcm.tee some_file.wav does not work. So if one wants to give the user a list of valid plugins, "pcm.tee" is not good. cheers pcm.tee { @args [ SLAVE FILE FORMAT ] @args.SLAVE { type string } @args.FILE { type string } @args.FORMAT { type string default raw } type file slave.pcm $SLAVE file $FILE format $FORMAT } On 9/16/06, Lee Revell <[EMAIL PROTECTED]> wrote: > On Sat, 2006-09-16 at 10:38 +0100, Mario Rossi wrote: > > Hi, > > > > I was wondering whether there is a function to get the list of pcm devices? > > It would be a list which the user could choose from. > > > > I've seen that if you run "aplay -L" you get it, but many of those pcm > > devices need arguments. > > > > aplay -L just calls snd_config_search(..., "pcm", ...). Is there a way > > to get a restricted list of just the actual devices that can be used > > without arguments? > > It's a known issue that ALSA has no usable device enumeration API. As > far as I know no one is working on solving it. > > What exactly do you mean by "PCM devices need arguments"? > > Lee > > ------------------------------------------------------------------------- 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