Commit 791efc17 authored by Steven O'Brien's avatar Steven O'Brien Committed by Max Kellermann

input/alsa: enable non-blocking mode

parent 144312a5
......@@ -367,7 +367,8 @@ AlsaInputStream::OpenDevice(const char *device,
snd_pcm_t *capture_handle;
int err;
if ((err = snd_pcm_open(&capture_handle, device,
SND_PCM_STREAM_CAPTURE, 0)) < 0)
SND_PCM_STREAM_CAPTURE,
SND_PCM_NONBLOCK)) < 0)
throw FormatRuntimeError("Failed to open device: %s (%s)",
device, snd_strerror(err));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment