Plexamp on Raspberry PI won't "release" MPD

I’m currently running Plexamp headless on a Raspberry PI in parallel with a Moode OS installation. For now I’d like to stick to Moode as well for Spotify Connect and Airplay.

In v4.2.0, this was working flawlessly and I could easily switch between playback in Plexamp or Moode because both systems would “release” MPD around 10 to 15 seconds after playback is paused (this is also visible on the screen of my DAC). However, in Plexamp 4.3.0, this behaviour has changed and after pausing playback, Plexamp won’t release MPD. Is there a setting for this which can be changed?

I’d add some logs if someone could point out where to find them when running the ARM Plexamp headless version.

The Raspberry Pi has a HifiBerry Digi+ Pro hat for connection to my DAC through optical cable.

I didn’t think to check this on 4.3.0 until you posted … I am seeing the same thing here with plexamp and roonbridge running on a standard rasperry pi OS lite install … plexamp not releasing the audio device after playback pause/stop

Yes, seeing the same with Volumio !!

@elan what is “Device 0” in 4.3.0 ?

Logs comparison below, Plexamp.1.log is from 4.2.2, Plexamp.3.log is from 4.3.0 on same Pi

odroid@odroid:~/.cache/Plexamp/log$ grep "BASS: Device\|Suspending quiescent\|Pausing audio output" Plexamp.1.log
Aug 06, 2022 08:01:16.668 [0x9125f0e0] INFO - BASS: Device 1: Default - enabled default - sample rates: () - active 0/0
Aug 06, 2022 08:01:16.668 [0x9125f0e0] INFO - BASS: Device 2: ODROID-HDMI:  - enabled - sample rates: () - active 0/0
Aug 06, 2022 08:01:16.668 [0x9125f0e0] INFO - BASS: Device 3: ODROID-HIFI:  - enabled - sample rates: () - active 0/0
Aug 06, 2022 08:02:05.077 [0x92a8f0e0] INFO - BASS: Device 3 opened and sample rate is 44100 (preferred was 44100, best was 44100, range is 0 - 0), latency is 45ms (period: 30ms).
Aug 06, 2022 08:02:05.081 [0x92a8f0e0] INFO - BASS: Device 3 opened and sample rate is 44100 (preferred was 44100, best was 44100, range is 0 - 0), latency is 45ms (period: 30ms).
Aug 06, 2022 08:02:32.184 [0x227cf0e0] INFO - BASS: Pausing audio output (after delay: 1)
Aug 06, 2022 08:02:43.299 [0x296cf0e0] DEBUG - BASS: Suspending quiescent device.
odroid@odroid:~/.cache/Plexamp/log$ grep "BASS: Device\|Suspending quiescent\|Pausing audio output" Plexamp.3.log
Aug 06, 2022 07:39:06.892 [0xa126f0e0] INFO - BASS: Device 1: Default - enabled default - sample rates: () - active 0/0
Aug 06, 2022 07:39:06.892 [0xa126f0e0] INFO - BASS: Device 2: ODROID-HDMI:  - enabled - sample rates: () - active 0/0
Aug 06, 2022 07:39:06.892 [0xa126f0e0] INFO - BASS: Device 3: ODROID-HIFI:  - enabled - sample rates: () - active 0/0
Aug 06, 2022 07:39:06.956 [0xa0a5f0e0] INFO - BASS: Device 0 opened and sample rate is 44100 (preferred was 44100, best was 44100, range is 0 - 0), latency is 15ms (period: 30ms).
Aug 06, 2022 07:39:49.445 [0xa1a7f0e0] INFO - BASS: Device 3 opened and sample rate is 44100 (preferred was 44100, best was 44100, range is 0 - 0), latency is 45ms (period: 30ms).
Aug 06, 2022 07:40:23.955 [0x327cf0e0] INFO - BASS: Pausing audio output (after delay: 1)
Aug 06, 2022 07:40:35.063 [0x337ef0e0] DEBUG - BASS: Suspending quiescent device.
Aug 06, 2022 07:40:35.063 [0x337ef0e0] INFO - BASS: Device 0 opened and sample rate is 44100 (preferred was 44100, best was 44100, range is 0 - 0), latency is 15ms (period: 30ms).

That should be the “no sound” device which should release the real audio device, but perhaps not.

Same issue exists in Cubox-I running Archlinux.

Here’s what’s happening in my case:

pi@moode:~/.cache/Plexamp/log $ grep "BASS: Device\|Suspending quiescent\|Pausing audio output" Plexamp.log
Aug 08, 2022 12:39:22.135 [0xa8b08180] INFO - BASS: Device -1 opened and sample rate is 44100 (preferred was 44100, best was 44100, range is 0 - 0), latency is 45ms (period: 30m
s).                                                                                                                                                                              
Aug 08, 2022 12:39:46.156 [0x377fe180] INFO - BASS: Pausing audio output (after delay: 1)
Aug 08, 2022 12:39:57.263 [0x3dffb180] DEBUG - BASS: Suspending quiescent device.
Aug 08, 2022 12:39:57.264 [0x3dffb180] INFO - BASS: Device 0 opened and sample rate is 44100 (preferred was 44100, best was 44100, range is 0 - 0), latency is 15ms (period: 30ms
).

Also, is it normal that when I just open the logs in a text editor, I get a continuous stream of this? :slightly_smiling_face:

Aug 08, 2022 03:15:39.739 [Javascript] INFO - WebSocket: Connection closed to ws://127.0.0.1:2000/jsonrpc                                                                        
Aug 08, 2022 03:15:44.740 [Javascript] INFO - WebSocket: Connection error to ws://127.0.0.1:2000/jsonrpc                                                                         
Aug 08, 2022 03:15:44.740 [Javascript] INFO - WebSocket: Connection closed to ws://127.0.0.1:2000/jsonrpc                                                                        
Aug 08, 2022 03:15:49.743 [Javascript] INFO - WebSocket: Connection error to ws://127.0.0.1:2000/jsonrpc                                                                         
Aug 08, 2022 03:15:49.743 [Javascript] INFO - WebSocket: Connection closed to ws://127.0.0.1:2000/jsonrpc                                                                        
Aug 08, 2022 03:15:54.746 [Javascript] INFO - WebSocket: Connection error to ws://127.0.0.1:2000/jsonrpc                                                                         
Aug 08, 2022 03:15:54.746 [Javascript] INFO - WebSocket: Connection closed to ws://127.0.0.1:2000/jsonrpc   

it’ll be fixed in the next release.

Great to hear you’re already on top of things! Do you have a rough estimate when we can expect the update? Just to see if it’s worth the effort to roll back to 4.2.0 for the time being. Thank you!

it’ll be fixed in the next release.

Thanks, quick question - do you guys have any event callback / script triggered when you stop playback? As I have a workaround for my current setup - when I am finished listening using plexamp and want to use a different audio system, I restart the plexamp service which solves the problem without requiring a reboot.

So I was thinking if there was a something like a onPlaybackStopped.sh - I could get it to just restart the plexamp service - a bit drastic :stuck_out_tongue: but it would probably work for most people.

Happy to report that this issue has already been solved in v4.3.1 beta which can be found here:

2 Likes

Yes, I tried the latest beta and it fixes the problem and releases the sound device.

1 Like

I checked with 4.3.1.beta5 version and the issue seems to be resolved.

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