Problems when using mpd
with pulse
Pulseaudio was created in order to enable using more than 1 audio source for one sink (correct?). If so, it should be possible to use one sink
for mpd
and another audio source right? That's exactly what I'm trying to do and I can't find the way.
Relevant Info
- I use
Awesome WM
andpulseaudio
so I rely purely commands to change audio settings - Nognome-settings
for example. - I use mpd as a service and the user running it is
mpd
in groupaudio
. - I have 2 audio outputs of type
pulse
defined in my/etc/mpd.conf
that use the following sinks:alsa_output.pci-0000_00_03.0.hdmi-stereo
andalsa_output.pci-0000_00_1b.0.analog-stereo
. - I can switch between those 2 audio outputs with
mpc
or other client formpd
likencmpcpp
. - This is the output of
grep -E "pulse|mpd|audio"
:
audio:x:29:pulse
pulse:x:123:mpd
pulse-access:x:124:mpd
Bonus Question: Why are there 2 groups forpulse
and what is the difference between them? - I use Ubuntu 16.04.
The problem is that if I want to hear music from my browser for example, I have to pause mpd
and refresh the page. It's quite annoying and sometimes I have to refresh the page more than once to hear something.
What I know
- I can view the programs that use (or want to use audio) with
pacmd list-sink-inputs
and I never seempd
there. - I know that
mpd
is running it's own pulseaudio session because I can see withhtop
/top
/ps aux
the following:
doron [..] /usr/bin/pulseaudio --start --log-target=syslog -vvvv
mpd [..] /usr/bin/pulseaudio --start --log-target=syslog -vvvv