How can I create custom PCM device with dmix-slave and use it in audacious without touching global PCM? Is it even possible? I tried miscellaneous configurations but no luck. ALSA asound.conf syntax is really weird. Here's the aplay -L output:
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=SB
HDA ATI SB, ALC662 rev1 Analog
Default Audio Device
sysdefault:CARD=SB
HDA ATI SB, ALC662 rev1 Analog
Default Audio Device
front:CARD=SB,DEV=0
HDA ATI SB, ALC662 rev1 Analog
Front speakers
surround21:CARD=SB,DEV=0
HDA ATI SB, ALC662 rev1 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=SB,DEV=0
HDA ATI SB, ALC662 rev1 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=SB,DEV=0
HDA ATI SB, ALC662 rev1 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=SB,DEV=0
HDA ATI SB, ALC662 rev1 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=SB,DEV=0
HDA ATI SB, ALC662 rev1 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=SB,DEV=0
HDA ATI SB, ALC662 rev1 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=SB,DEV=0
HDA ATI SB, ALC662 rev1 Digital
IEC958 (S/PDIF) Digital Audio Output
And aplay -l:
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: SB [HDA ATI SB], device 1: ALC662 rev1 Digital [ALC662 rev1 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
The roots of the problem: due to bug in audacious/alsa during music playback audacious consumes way too much CPU time. I found some kind of solution here https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=613203. I created ~/.asoundrc containing the following lines:
pcm.!default {
type plug
slave.pcm {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
rate 44100
}
}
}
It really works and audacious consumes only small amount of CPU time. However, this creates problems with sound playback in Firefox. Sound in youtube videos stutters.
~/.config/audacious/config
. But why don't you update Audacious?