Skip to content

Hook-based volume controller not reinitiated on reconnection #249

@LLBR88

Description

@LLBR88

I am successfully able to use the hook-based volume feature to adjust the volume via sendspin.

The only issue I have is that if the daemon loses connection and reconnects, the volume controller stops working. The MA UI still has a volume slider but nothing changes and sendspin-cli logs stop showing volume changes. The volume script still works, it just isn't called anymore.

To test:
Start MA
Start Sendspin daemon with no arguments and hook_set_volume in .config/sendspin/settings-daemon.json
Volume control works
Restart MA server but not sendspin
Volume control no longer works

Some logs below showing volume control working and then reconnection event. No volume logs even though I changed volume in ma ui.

May 11 00:30:34 officepi systemd[907]: Started sendspin.service - Sendspin Service.
May 11 06:30:52 officepi sendspin.sh[999]: INFO:sendspin.audio_devices:Using audio device 7: pipewire
May 11 06:30:52 officepi sendspin.sh[999]: INFO:sendspin.cli:Using hook-based external volume control via /home/lloyd/seafile/volume.sh
May 11 06:30:59 officepi sendspin.sh[999]: INFO:sendspin.daemon.daemon:Starting Sendspin daemon: sendspin-cli-officepi
May 11 06:31:01 officepi sendspin.sh[999]: INFO:sendspin.audio_devices:Detected 32 supported audio formats (FLAC + PCM)
May 11 06:31:01 officepi sendspin.sh[999]: INFO:aiosendspin.client.client:Connecting to Sendspin server at ws://192.168.1.234:8927/sendspin
May 11 06:31:01 officepi sendspin.sh[999]: INFO:aiosendspin.client.client:Connected to server 'Music Assistant' (51e0a1567fc94aadb7d36bb4809ec899) >
May 11 06:31:01 officepi sendspin.sh[999]: INFO:aiosendspin.client.client:Handshake with server complete
May 11 06:31:01 officepi sendspin.sh[999]: INFO:sendspin.daemon.daemon:Server set delay: 0ms

May 11 13:28:22 officepi sendspin.sh[999]: INFO:sendspin.daemon.daemon:Server set player volume: 18%
May 11 13:29:26 officepi sendspin.sh[999]: INFO:sendspin.daemon.daemon:Server set player volume: 20%
May 11 13:29:26 officepi sendspin.sh[999]: INFO:sendspin.daemon.daemon:Server set player volume: 22%
May 11 13:45:34 officepi sendspin.sh[999]: INFO:sendspin.daemon.daemon:Disconnected from server
May 11 13:45:34 officepi sendspin.sh[999]: INFO:sendspin.daemon.daemon:Reconnecting to ws://192.168.1.234:8927/sendspin
May 11 13:45:34 officepi sendspin.sh[999]: INFO:aiosendspin.client.client:Connecting to Sendspin server at ws://192.168.1.234:8927/sendspin
May 11 13:45:34 officepi sendspin.sh[999]: INFO:aiosendspin.client.client:Connected to server 'Music Assistant' (51e0a1567fc94aadb7d36bb4809ec899) >
May 11 13:45:34 officepi sendspin.sh[999]: INFO:aiosendspin.client.client:Handshake with server complete
May 11 13:45:42 officepi sendspin.sh[999]: INFO:aiosendspin.client.client:Stream started with codec flac

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions