Subject: Re: [linux-audio-dev] PCM Device Enumeration
From: Paul Davis (pbd_AT_op.net)
Date: Sat May 11 2002 - 02:21:35 EEST
>OK, help me with the philosophy here then. If the intent is to discourage the
>use of interface IDs of the form 'hw:0,0', then why does the snd_pcm_open()
>call *require* names in this form?
how about: "it doesn't" ?
if you put this into your ~/.asoundrc file:
pcm.my_funny_friendly_familiar_name {
type hw
card 0
device 0
}
you can then call
snd_pcm_open ("my_funny_friendly_familiar_name", ...);
OR:
snd_pcm_open ("hw:0,0", ...);
and get the same effect from them both.
perhaps you don't realize this - i can't say i blame you. its one of
the most fundamental aspects of using ALSA, but its not prominent in
any of the docs or the website.
--p
This archive was generated by hypermail 2b28 : Sat May 11 2002 - 02:17:48 EEST