From 03d33a841919dddbfce004be8b9338458394efbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonin=20D=C3=A9cimo?= Date: Wed, 28 Nov 2018 00:54:15 +0100 Subject: [PATCH] Fix #193 alsa backend not handling SND_PCM_STATE_PRIVATE1 This is a private value of alsa, ignore it. --- src/alsa.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/alsa.c b/src/alsa.c index 5a1e541..edbf51b 100644 --- a/src/alsa.c +++ b/src/alsa.c @@ -1191,6 +1191,8 @@ static void outstream_thread_run(void *arg) { case SND_PCM_STATE_DISCONNECTED: outstream->error_callback(outstream, SoundIoErrorStreaming); return; + default: + continue; } } } @@ -1260,6 +1262,8 @@ static void instream_thread_run(void *arg) { case SND_PCM_STATE_DISCONNECTED: instream->error_callback(instream, SoundIoErrorStreaming); return; + default: + continue; } } }