Skip to contentSkip to conversation

How to find out which PCM handle ASCII identifier to pass to snd_pcm_open?

DISCUSSION Andre Kirchner 2 participants 2 messages Sep 21, 2008 – Sep 25, 2008

lore
Share & tools
lore
#0 lore raw

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?

I'm not sure this is the right mailing list for this question, and I apologize if not :-)

Thanks,

Andre

#1 lore raw

At Sun, 21 Sep 2008 12:33:37 -0700 (PDT),

Quoted 4 lines · Andre Kirchner

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