Auto pause when ALSA device disappears? #1153
Labels
blocked by: librespot
Issues that are blocked by librespot's upstream
bug
A functionality or parts of a program that do not work as intended
Description
Using
spotifyd
on RPi4 with ALSA as backend and USB DAC as output. No sound servers used. Everything works fine, except that when the USB DAC is switched off, spotifyd crashes, with logs like this:Is it possible to make a configuration such that when ALSA device disappears, spotifyd makes a pause instead of crash? E.g., this is the standard behaviour of the
mpd
player. As far as I can tell, bothmpd
andspotifyd
uselibasound
, so probably it is possible to implement something like catching the event/exception fromlibasound
when ALSA device disappears.NB: If ALSA device is switched off when
spotifyd
is paused, it does not crash, until I ask it to play.To Reproduce
spotifyd
with ALSA backend and a single ALSA devicespotifdy
crashesExpected behavior
Pause instead of crash
Compilation flags
Installed from Arch Linux community repo (Arch Linux ARM port)
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: