You are not logged in.
Firefox want to work only with pulseaudio. Can someone help with information how to force Firefox to use default alsa device or device named “dmixed” so there is no need to start pulseaudio?
Environmental variables ALSA_CARD, ALSA_PCM_CARD not seems to work, or maybe I don't figure out proper form of device names to set.
My !default ALSA device config:
pcm.!default {
type plug
slave.pcm "dmixed"
}pcm.dmixed {
type asym
playback.pcm {
type dmixipc_key_add_uid true
ipc_key 5678293
ipc_perm 0660
ipc_gid audioslave {
channels 6
pcm {
format S32_LE
rate 88200nonblock true
type hw
card 0
device 0
subdevice 0
}period_size 1024
buffer_size 8192
}
}
capture.pcm "dsnoop"
}
I use ~/.asoundrc from ALSA configuration kindly posted by brebs on this forum, because it suited my needs.
P.S.
All this configuration was to get possibility to use sound card directly, because Pulse always authoritatively grabs card and not closing itself despite configuration to terminate immediately.
Environmental variable FLASH_ALSA_DEVICE="plug:dmix" helped to forse audio device for Flash, but I wonder why only “plug:dmix” work and “plug:dmixed” not.
I'am writing this topic because I desperately searched for solution & wanted to solve problem and post solution to Arch Wiki Troubleshooting sections.
Last edited by PiroXiline (2014-12-20 05:27:34)
Offline
No sound from html5-Videos in Firefox either here.
Works fine with other apps like vlc, mplayer, audacious. Simultaenously too.
pcm.!default {
type asym
playback.pcm "LoopAndReal"
#capture.pcm "looprec"
capture.pcm "hw:0,0"
}
pcm.looprec {
type hw
card "Loopback"
device 1
subdevice 0
}
pcm.LoopAndReal {
type plug
slave.pcm mdev
route_policy "duplicate"
}
pcm.mdev {
type multi
slaves.a.pcm pcm.MixReale
slaves.a.channels 2
slaves.b.pcm pcm.MixLoopback
slaves.b.channels 2
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave b
bindings.2.channel 0
bindings.3.slave b
bindings.3.channel 1
}
pcm.MixReale {
type dmix
ipc_key 1024
slave {
pcm "hw:0,0"
rate 48000
periods 128
period_time 0
period_size 1024
buffer_size 8192
}
}
pcm.MixLoopback {
type dmix
ipc_key 1025
slave {
pcm "hw:Loopback,0,0"
rate 48000
periods 128
period_time 0
period_size 1024
buffer_size 8192
}
}Last edited by mir91 (2015-02-17 21:59:27)
Offline