alsa_writer: use non-blocking open mode.
[paraslash.git] / alsa_writer.c
index 5c32907..466f1e8 100644 (file)
@@ -83,7 +83,7 @@ static int alsa_open(struct writer_node *w)
        w->private_data = pad;
        snd_pcm_info_alloca(&info);
        err = snd_pcm_open(&pad->handle, conf->device_arg,
-               SND_PCM_STREAM_PLAYBACK, 0);
+               SND_PCM_STREAM_PLAYBACK, SND_PCM_NONBLOCK);
        if (err < 0)
                return -E_PCM_OPEN;
        if ((err = snd_pcm_info(pad->handle, info)) < 0)