Fix #193 alsa backend not handling SND_PCM_STATE_PRIVATE1

This is a private value of alsa, ignore it.
This commit is contained in:
Antonin Décimo 2018-11-28 00:54:15 +01:00 committed by Andrew Kelley
parent e0f0f6a7a2
commit 03d33a8419

View file

@ -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;
}
}
}