Re: [Alsa-user] How to get a list of pcm devices
Brought to you by:
perex
From: Mario R. <mar...@go...> - 2006-09-16 18:33:17
|
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 <rlr...@jo...> 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 > > |