<div dir="ltr"><div><div><div><div><div><div><div>
Hi,<br><br></div>You can change the default card for the current shell by setting the value of the ALSA_CARD environment variable.<br></div>Example:<br><br></div>export ALSA_CARD=1 # will use the second soundcard on your system for all alsa programs launched in the same shell.<br><br></div>You can also do it on a per-program bases:<br><br></div>ALSA_CARD=2 espeak "some text" # will make espeak use the third soundcard on your system<br><br></div><div>To have it set system wide, create the file /etc/asound.conf, containing the following line:<br><br></div><div>defaults.pcm.card=1<br><br></div><div>This will make all programs on the system use the second soundcard.<br></div><div><br><br></div><div>Note that all of the above asume that pulseaudio is not running. If you use pulseaudio, you will have to change the soundcard in the pulseaudio settings application.<br></div><div><br></div>Regards,<br><br></div>Rynhardt<br><div><div><div><div><div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 11, 2015 at 10:30 AM, Kristoffer Gustafsson <span dir="ltr"><<a href="mailto:kg.kristoffer@gmail.com" target="_blank">kg.kristoffer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi.<br>
I don't really want to modify config files.<br>
I just want to change soundcard.<br>
For example if I've got two in the computer I want to choose wich card to use.<br>
I'll look into this. Last time I had my machine running I got no amixer at all.<br>
I ended up using aumix.<br>
<span class="HOEnZb"><font color="#888888">/Kristoffer<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
2015-08-10 21:09 GMT+02:00, Kristoffer Gustafsson <<a href="mailto:kg.kristoffer@gmail.com">kg.kristoffer@gmail.com</a>>:<br>
> Hi.<br>
> I've decided to try out my usb soundcard in debian.<br>
> But how do I change what card it uses?<br>
> I used alsaconf Before, but that doesn't exist any longer.<br>
> /Kristoffer<br>
><br>
> --<br>
> Kristoffer Gustafsson<br>
> Salängsgatan 7a<br>
> tel:033-12 60 93<br>
> mobil: 0730-500934<br>
><br>
<br>
<br>
--<br>
Kristoffer Gustafsson<br>
Salängsgatan 7a<br>
tel:033-12 60 93<br>
mobil: 0730-500934<br>
<br>
_______________________________________________<br>
Blinux-list mailing list<br>
<a href="mailto:Blinux-list@redhat.com">Blinux-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/blinux-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/blinux-list</a></div></div></blockquote></div><br></div></div></div></div></div></div></div></div></div></div>