Multiple sound cards
Hi everyone, I'm new to this mailing list.
I have a question, I couldn't find the answer on google. Imagine I have 2 sound cards both configured under alsa. Is there a way to switch the default one through software (is there like an API call that does that) ?
Thanx
Georges
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
Quoted 4 lines
Hi everyone, I'm new to this mailing list.
I have a question, I couldn't find the answer on google. Imagine I have 2 sound cards both configured under alsa. Is there a way to switch the default one through software (is there like an API call that does that) ?
its hard to define the default one. but to take the simplest possible case, which is an application that opens a PCM (audio) device called "default", the definition is in /usr/share/alsa/alsa.conf:
defaults.ctl.card 0
defaults.pcm.card 0
defaults.pcm.device 0
defaults.pcm.subdevice -1
change the zeroes to ones, and "default" will refer to the second card.
to go further, ask further questions.
--p
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285