Thanks, Stefan. Your suggestion to address the cards via plug:hw:0 through plug:hw:3 works fine. However, addressing them as default:0 through 3 doesn't work on my system (Debian Sarge). Every invocation using the word default like this routes to the same device - the default card. I can't address any of the others in this way. However, the 'plug' syntax is good to go. I suppose I can use this syntax, or something like it in alsa config files as described at http://alsa.opensrc.org/ TwoCardsAsOne .
Now I have a way to address the cards, I need to implementing the virtualisation of these individual cards into a single mega-sound device! For anyone who's interested, the plan is to build this... http://cefn.com/curiosity/tag/pipedreams I'm using JJack to manipulate sound. Jack (the library addressed by JJack) can only address a single sound card, hence I'm diving into the alsa config to make 16 sound cards look like a single device with 32 outputs and 16 inputs. Cefn http://curiositycollective.org On 11 Aug 2006, at 06:49, Stefan BrĂ¼ns wrote: > Cefn Hoile wrote: >> THE BASIC PROBLEM >> >> I have managed to set up a debian system with Alsa recognising 4 >> identical soundcards - C-Media USB Headsets. However, I am only >> able to address one of the devices by name, or by hardware address. >> >> One of these devices is apparently assigned the identifier >> 'default' by alsa. I can play back sound through this card using >> either... >> aplay sound.wav >> aplay --device=default sound.wav >> >> When I run... >> aplay -l >> ...it tells me that there are four devices, named... >> >> default >> default_1 >> default_2 >> default_3 >> >> ...but using any of these other names default_1, default_2, >> default_3 throws a pesky error saying >> >> Sample format non available > This naming scheme looks strange, never seen anything before that. I > think it is done by your distribution, but I am not sure. So, back to > solving problems: > > "Sample format not available" - just means what it says. You have > either > to use plug:hw:[0123], which does sample format and rate conversion > automatically (you should also be able to use default:[0123], which > gives you dmix/dsnoop on top, when needed), or choose a supported > sample > format - this includes rate, channel count, data format (Little vs Big > Endian, 16 vs 24 bit, 24 bit packed vs 32 bit padded). To get aware of > supported formats, start aplay with -v for the default device, which > will print the software as well as the hardware sample format. And to > really use one of the hw:x devices, your file has to be in the correct > format, so just use default:1 for example.\ > > Greetings, > > Stefan > ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/alsa-user
