mirror of
https://github.com/Ryujinx/libsoundio.git
synced 2024-12-22 18:45:29 +00:00
Fix #193 alsa backend not handling SND_PCM_STATE_PRIVATE1
This is a private value of alsa, ignore it.
This commit is contained in:
parent
e0f0f6a7a2
commit
03d33a8419
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue