output/alsa: add option "close_on_pause"

This allows keeping the ALSA PCM open even if playback is paused.  As
a side effect, this allows using the "always_on" option with ALSA
outputs, because "always_on" pauses the output.

Closes https://github.com/MusicPlayerDaemon/MPD/issues/1623
This commit is contained in:
Max Kellermann
2024-07-29 16:04:23 +02:00
parent 7ab789fbaf
commit 0a035f3ce0
4 changed files with 43 additions and 8 deletions

1
NEWS
View File

@@ -32,6 +32,7 @@ ver 0.24 (not yet released)
- alsa: limit ALSA buffer time to 2 seconds
- alsa: set up a channel map
- alsa: support the alsa-lib 1.2.11 API
- alsa: add option "close_on_pause"
- curl: add "connect_timeout" configuration
* decoder
- ffmpeg: require FFmpeg 4.0 or later