Skip to contentSkip to conversation

Can't you make a program that can switch the order of the sound cards?

DISCUSSION Kristof Vansant 2 participants 2 messages Oct 18, 2004

lore
Share & tools
lore
#0 lore raw

Can't you make a program that can switch the order of the sound cards? So that if you have 2 sound cards you just can say I want to use the second one as primary output. This would solve for me, that my bttv is detected before my sound card. Giving me no sound :S
And this should be realtime. So no need for reboot.

lupusBE (Kristof Vansant Belgium)

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl

#1 lore raw
Quoted 5 lines

Can't you make a program that can switch the order of the sound cards? So that if you have 2 sound cards you just can say I want to use the second one as primary output. This would solve for me, that my bttv is detected before my sound card. Giving me no sound :S
And this should be realtime. So no need for reboot.

put this in your ~/.asoundrc:

pcm.!default {
type plughw
slave.pcm "plughw:1"
}

i believe that should do what you want for almost all correctly written ALSA apps.

alternatively, all ALSA driver modules accept an "index" option to specify which slot they should use. thus using index=1 for the one you want second and index=0 for the one you want first should also do the trick. this is not a non-reboot option if you do not use modules.

--p

-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl