From f923e99f98f86ba04bde0ab9c1bd942444c26dc4 Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Wed, 30 Jun 2021 10:02:46 +0100 Subject: [PATCH] Terminate the program if the specified output device can not be found. --- audio_alsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio_alsa.c b/audio_alsa.c index 14dfcec2..564570bb 100644 --- a/audio_alsa.c +++ b/audio_alsa.c @@ -434,7 +434,7 @@ int actual_open_alsa_device(int do_auto_setup) { ret = snd_pcm_open(&alsa_handle, alsa_out_dev, SND_PCM_STREAM_PLAYBACK, 0); if (ret < 0) { if (ret == -ENOENT) { - warn("the alsa output_device \"%s\" can not be found.", alsa_out_dev); + die("the alsa output_device \"%s\" can not be found.", alsa_out_dev); } else { char errorstring[1024]; strerror_r(-ret, (char *)errorstring, sizeof(errorstring));