[alsa-devel] How to find out which PCM handle ASCII identifier to pass to snd_pcm_open?

Takashi Iwai tiwai at suse.de
Thu Sep 25 12:49:18 CEST 2008


At Sun, 21 Sep 2008 12:33:37 -0700 (PDT),
Andre Kirchner wrote:
> 
> I have just started learning ALSA's api, and came accross some examples at http://equalarea.com/paul/alsa-audio.html, which pass argv[1] to snd_pcm_open.
> 
> My question is which should be the values of argv[1] for the microphone, and left and right speakers devices?

Right now there is no persistent names for them.  The apps are
supposed to open "default", and let user adjust the proper input
source via mixer.  So, in general, the input/output route isn't chosen
at the open time except for SPDIF and surrounds.


Takashi


More information about the Alsa-devel mailing list