Exit if the requested output format is not available.

This commit is contained in:
Mike Brady
2021-06-01 09:51:14 +01:00
parent d4ea91aa65
commit 7df6ff0a55
+1 -1
View File
@@ -501,7 +501,7 @@ int actual_open_alsa_device(int do_auto_setup) {
}
ret = snd_pcm_hw_params_set_format(alsa_handle, alsa_params, sf);
if (ret < 0) {
warn("audio_alsa: Alsa sample format %d not available for device \"%s\": %s", sf,
die("audio_alsa: Alsa sample format %d not available for device \"%s\": %s", sf,
alsa_out_dev, snd_strerror(ret));
return ret;
}