02-07-2024, 09:52 PM
Keeping the audio output open would need to be done upstream by the player software i.e., MPD or the renderers for example AirPlay or Spotify Connect. The Squeezelite renderer already does this by default.
Here's an older MPD issue that was posted requesting such a feature. The MPD maintainer pointed the OP to the existing "always_on" option and then closed the issue. The problem is that that option only works with the HTTP server feature in MPD and not with the ALSA output.
https://github.com/MusicPlayerDaemon/MPD/issues/1599
Hopefully someone will post another issue requesting the feature, or better yet a PR with the code to implement it.
Here's an older MPD issue that was posted requesting such a feature. The MPD maintainer pointed the OP to the existing "always_on" option and then closed the issue. The problem is that that option only works with the HTTP server feature in MPD and not with the ALSA output.
https://github.com/MusicPlayerDaemon/MPD/issues/1599
Hopefully someone will post another issue requesting the feature, or better yet a PR with the code to implement it.