Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 14923  / 1 Year ago, sun, january 1, 2023, 5:34:55

I'm looking for a way to select sound card in Lubuntu 12.04 without installing any additional packages like xfce4-mixer (with all of its dependencies). Is there a way to interactively select a sound card with alsa?


More From » lubuntu

 Answers
2

There is no way to switch the audio output on the fly from one sound card to another with ALSA. To define my NuForce sound card as the one to use I created the file ~/.asoundrc with the content



pcm.!default {
type hw
card N2
}

ctl.!default {
type hw
card N2
}


where the name N2 comes from the content of the file /proc/asound/cards:



$ cat /proc/asound/cards
0 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0x93480000 irq 23
1 [B10 ]: USB-Audio - Benchmark 1.0
Texas Instruments Benchmark 1.0 at usb-0000:00:04.0-1, full speed
2 [N2 ]: USB-Audio - NuForce µDAC 2
NuForce NuForce µDAC 2 at usb-0000:00:04.0-3, full speed


If I want to change to B10 say, I need to edit ~/.asoundrc and restart the sound application.


[#36621] Tuesday, January 3, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
landarre

Total Points: 254
Total Questions: 96
Total Answers: 109

Location: Burundi
Member since Sun, Apr 16, 2023
1 Year ago
landarre questions
;