09-06-2024, 03:06 PM
(09-06-2024, 12:26 PM)the_bertrum Wrote:(09-06-2024, 11:43 AM)Tim Curtis Wrote: I ran a quick test and am not able to repro the issue.
1. Configure volume type to Fixed (0dB)
2. Start radio station playing
3. Connect via iPhone Spotify App
4. sudo reboot
When the Web UI comes back up volume type is still correctly set to Fixed (0dB).
I think its when using not-fixed volume Tim. Set the volume to something other than zero, connect to Spotify, kill the player, when it starts volume will be at zero. I can't see how it could be otherwise though, based on my understanding of what happens when the Spotify renderer takes control.
If the system is rebooted while a renderer is running the renderer event script that resets the player state when the renderer disconnects never gets executed. This leaves things like the renderer active flag still showing as active.
During moode startup this condition is checked and the flags are reset and volume is set to 0 to be safe since the assumption is that an abrupt reboot or power off occurred.
You should see these lines in the log
Code:
20240906 101256 worker: Active flags: at least one true
20240906 101256 worker: Reset flags: all reset to false
20240906 101256 worker: MPD volume: set to 0
In the OP's case I think the bug is that even though MPD volume shows 0 after the first reboot music is still audible.
I'll need to investigate this.