On Wed, 2006-07-05 at 20:04 +0200, [EMAIL PROTECTED] wrote:
> Hello,
> 
> 
> *** description :
> I want to record wav files from several *identical* (except for serial 
> number) usb audio soundcard.
> 
> My sound cards must appear in the right order. For example, physical 
> card called n°1 must always correspond to the same name 
> (/dev/snd/pcmC1D0c for example), whatever is the pluging order.
> 
> This part is done easily with UDEV and is working.
> 
> 
> *** question :
> Now my problem is that no one seems to use /dev/snd/pcmCxDx to access 
> cards ?
> 
> For example, I can't find how to tell to arecord to use 
> /dev/snd/pcmC1D0c device.
> arecord use -D parameter with card and device number (-D hw:1,0 for 
> example), but these parameters are *not* affected by UDEV. So my UDEV 
> rules are useless for arecord.
>
> Same for other programs I found : ecasound, ... each program seems to 
> access the cards using hw:x,x parameters and not the /dev name.
> 

That's not how ALSA works.  Apps are not supposed to directly
access /dev/snd/pcm*.  The interface is via alsa-lib.

> *** in other words :
> I just want to know how to record a wav file from a given physical card 
> ; knowing that I have up to 5 identical cards except for the serial number ?
> 
> 
> I have done a lot of search on google and the mailing list, and I was 
> unable to find a solution. The "index=" parameter when loading module is 
> not applicable to me because the cards are the same. Sorry if my problem 
> has been already asked.

You should be able to access the cards by serial number.

What are the contents of "/proc/asound/cards"?

Lee


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to