You are not logged in.

#1 2011-04-12 17:08:18

natostanco
Member
Registered: 2008-01-07
Posts: 126

Changing sound output device "Dinamically"

Is there a way to change which soundcard is active without rebooting of things like that, just using some commands?

I found alsa wiki page to be very dispersive sad

Offline

#2 2011-04-12 18:16:59

wudu
Member
Registered: 2010-03-08
Posts: 83

Re: Changing sound output device "Dinamically"

Hi,
I don't know if there is something for ALSA but with pulseaudio it works.
The program named "padevchooser" (available in aur) can change pulseaudio devices.

Offline

#3 2011-04-12 18:21:04

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Changing sound output device "Dinamically"

~/.asoundrc

pcm.!default {
    type hw
    card 0
}
ctl.!default {
    type hw
    card 0
}

Change 0 to 1 for the second card, 2 for the third card, etc.


ᶘ ᵒᴥᵒᶅ

Offline

#4 2011-04-12 21:46:07

natostanco
Member
Registered: 2008-01-07
Posts: 126

Re: Changing sound output device "Dinamically"

So, i created this:

    
       pcm.hda-intel {
          type hw
          card 1
       }

       ctl.hda-intel {
          type hw
          card 1
       }
       pcm.oxygen {
          type hw
          card 0
       }

       ctl.oxygen {
          type hw
          card 0
       }

How can I switch among them during an X session? if it is possible...(for example using 1 card as output of teamspeak, and 1 card ous output of browser sounds)

Last edited by natostanco (2011-04-12 21:58:11)

Offline

#5 2011-04-13 20:13:17

jlindgren
Member
Registered: 2011-02-27
Posts: 260

Re: Changing sound output device "Dinamically"

Hmm, you ask the same exact question as https://bbs.archlinux.org/viewtopic.php?id=116749.

When you change .asoundrc, you don't need to restart the computer or the X session, but you do need to restart individual apps (your browser, your music player, and so on) for the changes to take effect.

Offline

#6 2011-04-13 21:23:32

natostanco
Member
Registered: 2008-01-07
Posts: 126

Re: Changing sound output device "Dinamically"

i switched to pulse audio...couldnt figure out how to effectively use .asoundrc, I think I was writing it with some errors...however with pulse I can easily switch sound card output, but the input is screwed up since my microphone doesnt work :s

Offline

Board footer

Powered by FluxBB