[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SOLVED]Re: ALSA with Multiple Sound Cards



Adam Porter wrote:
I've set up a mix of testing and unstable on my desktop PC finally. I have two SoundBlaster Live! Value cards. They both work in Windows 2000, and with several clicks I can change the default card for output so I can easily switch between headphone and speaker output.

I have kernel 2.6.10 set up with ALSA. I can play sound, but only through one card, which isn't the one I want as the default. The info utilities I've looked at show that both cards are detected, one as card 0 and one as card 1.

I spent quite some time yesterday looking for information on how to set the default card in ALSA. I found a way that is supposed to do it, setting some things in /etc/asound.conf and/or ~/.asoundrc (I think that's the second one).

Well, a little more time spent on Google and such, and it works now. :) Thanks for your responses, everyone.

Here's what I did:

1. Set up ~/.asoundrc according to <http://www.alsa-project.org/alsa-doc/doc-php/asoundrc.php?module=emu10k1 >. Changed "card" from 0 to 1.

2. (Since I was using Rhythmbox to play MP3 streams...) Used Synaptic to remove gstreamer's OSS package, and installed the gstreamer ALSA package.

3. Used GConf to change "audiosrc" and "audiosink" in /system/gstreamer/0.8/default/audiosrc from "osssrc" and "osssink" to "alsasrc" and "alsasink".

4.  Clicked the play button in Rhythmbox.

5. Done. :) No reboot or anything, didn't even have to restart the program. (Compared with Windows, where you'd have to reboot at least once, probably...)



Reply to: