Plexamp [headless] locks audio device with XRUN status

I’m running Plexamp headless on two different systems: a Raspberry Pi running Manjaro using ALSA directly with a BossDac Hat, and a Ryzen desktop running Ubuntu using PulseAudio and a USB DAC. On both I get an issue that’s made Plexamp an unsustainable streaming solution: it does not release the audio device after playback or disconnecting. The only way to release the audio device so that something else can be played is to stop the plexamp service. The Pi running ALSA directly offers more information beyond a ‘running’ or ‘closed’ device status:

cat /proc/asound/card0/pcm0p/sub0/status 
state: XRUN

This is the reported state of the sound device when playback has finished on the Pi. On the desktop, the status will simply remain at ‘running’. Obviously this means that I cannot use plexamp as a background service on my Desktop, or stream from Spotify or DLNA on the Pi with such an issue.

Note: The appimage version does not have this issue on Desktop.

This should be fixed in the next release.

You can try the latest headless beta at https://plexamp.plex.tv/headless/Plexamp-Linux-headless-v4.3.1-beta.7.tar.bz2 if you’d like to confirm.

Thanks for the quick reply.

Tested on my Pi and I can confirm that the beta resolves the issue. The DAC is released after 14-15 seconds. Any chance of making that more like 4-5 seconds? :wink:

I also noted that my other annoyance appears to be solved, that being the play/pause remote control. :slightly_smiling_face:

Off topic, but seeing as I have your attention; is there any technical or legal reason that Plexamp can’t play to a UPnP media renderer such as upmpdcli (as used by the likes of Volumino)?

Thanks again. It’s great to see some Linux love!

Sorry, trying to draw a balance between casual pausing and a longer pause, given that with some hardware, starting/stopping audio h/w can have audibles associated with it.

Only because UPnP sucks, and we’d prefer to focus on a home solution around headless Plexamp :sweat_smile:

Any chance of a user configurable parameter there then? :wink:

Fair enough. :slightly_smiling_face:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.