LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   configure preferred sound device for all applications (http://www.linuxquestions.org/questions/slackware-14/configure-preferred-sound-device-for-all-applications-4175498635/)

nivieru 03-18-2014 03:07 PM

configure preferred sound device for all applications
 
Hi all,
I'm having a bit of trouble telling programs to use my external usb sound card.
The card is working correctly, I can select it as default in the phonon settings and get kde and amarok (and probably other kde applications) to use it.
However, everything else (clementine, firefox, vlc) insist on using the internal card.

how can I get clementine, vlc etc to use the external sound card like kde does?

thanks,
niv

ml4711 03-18-2014 03:18 PM

This works for me.

Create .asoundrc in your home dir with this contents:

Code:

pcm.!default {
    type hw
    card Audio
}

ctl.!default {
    type hw
    card Audio
}

use aplay -l to show the real name of the card

aplay -l
card 2: Audio [USB Audio], device 0: USB Audio [USB Audio]
Subdevices: 0/1
Subdevice #0: subdevice #0

nivieru 03-18-2014 03:53 PM

Thanks, that worked!

just to be more verbal for anyone else who might need it,
in the solution above replace "Audio" with the name that aplay -l gives you
Code:

card #: Name_of_card ...

Snerk 04-01-2014 08:09 PM

So in the example given, would you put

Code:

card Audio
or
Code:

card Audio [USB Audio]
?

ml4711 04-02-2014 04:12 AM

Code:

card Audio


All times are GMT -5. The time now is 12:27 PM.