Hi Jussi,

On Mon, 08 Oct 2001, Jussi Laako wrote:

> Jaroslav Kysela wrote:
> > 
> > > put into device id of snd_pcm_open()? Can't find it documented 
> > 
> > You can put there any unique string / abbreviation of the given PCM
> > device.
> 
> Here's my 'aplay -l' output, what should I put into snd_pcm_open() to open
> card2/device0 or card1/device1? It just complains about everything I try.

I struggled with this about a month or two ago, coming from your same
perspective. As far as I know, these are the pcm devices:

"hw:N,M": the Nth card, with the Mth pcm device. N and M start with 0.
this device does not use the software plugin layer.

"default": uses the software plugin layer to resample and fold/multiply
channels, if necessary. plays on the first card iirc. this is usually
what you want.

"front": just the front two speakers on your first card.

"surround40" and "surround51": 4.0 and 5.1 surround respectively.

There are a number more. I would look closely at
/usr/share/alsa/alsa.conf, as it lists them. Hopefully this should give
you a start.

And please, if any of this is wrong, let me know.

wingo

_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to