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 WMandpulseaudioso I rely purely commands to change audio settings - Nognome-settingsfor example. - I use mpd as a service and the user running it is
mpdin groupaudio. - I have 2 audio outputs of type
pulsedefined in my/etc/mpd.confthat use the following sinks:alsa_output.pci-0000_00_03.0.hdmi-stereoandalsa_output.pci-0000_00_1b.0.analog-stereo. - I can switch between those 2 audio outputs with
mpcor other client formpdlikencmpcpp. - 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 forpulseand 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-inputsand I never seempdthere. - I know that
mpdis running it's own pulseaudio session because I can see withhtop/top/ps auxthe following:
doron [..] /usr/bin/pulseaudio --start --log-target=syslog -vvvv
mpd [..] /usr/bin/pulseaudio --start --log-target=syslog -vvvv