MPD plays, but it is not integrated into KDE Audio application

Need help with MPD?
Post Reply
onidlo
Posts: 2
Joined: May 14th, 2020, 7:30 pm

MPD plays, but it is not integrated into KDE Audio application

Post by onidlo »

Dear all,

MPD/Cantata plays fine, I can hear the music. But it always uses integrated laptop speakers, regardless my default device set in KDE. I cannot switch to BT headset, USB headphones, because MPD/Cantata is not even detected as an application playing music, as you can see at the attached image. All other applications are working fine, even non-KDE like Firefox.

I tried to change audio output in /etc/mpd.conf from ALSA:

Code: Select all

audio_output {
        type            "alsa"
        name            "My ALSA Device"
}
to PulseAudio:

Code: Select all

audio_output {
       type            "pulse"
       name            "My Pulse Output"
}
But then it stopped playing. I'm using default Kubuntu 20.04 setup, MPD 0.21.20. Further details (--version output and mpd.conf can be found here: http://paste.debian.net/1146802/)

This is what I see in KDE:
Attachments
Cantata-KDE.png
Cantata-KDE.png (55.31 KiB) Viewed 1139 times

max
Forum team
Posts: 1063
Joined: January 15th, 2013, 3:43 pm

Re: MPD plays, but it is not integrated into KDE Audio application

Post by max »

This is probably because you're running MPD as a system service, which isn't allowed to connect to your user's Pulse daemon. One simple solution is to run MPD as a user daemon, but there are also hacks to make PulseAudio available to system services.

onidlo
Posts: 2
Joined: May 14th, 2020, 7:30 pm

Re: MPD plays, but it is not integrated into KDE Audio application

Post by onidlo »

Thanks Max! Now everything works smoothly :-)

Post Reply