]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - alsa_write.c
alsa: Revert 596d1d97f90854bd941db02f1353df8e1196ccc0
[paraslash.git] / alsa_write.c
index b10d5c62faa910dc92757e4ce77afc818c0a676a..3a1e76e62c3e60c4c488f86c9b378a5d431be17e 100644 (file)
@@ -137,6 +137,7 @@ static int alsa_open(struct writer_node *w)
        PARA_INFO_LOG("bytes per frame: %zu\n", pad->bytes_per_frame);
        if (snd_pcm_nonblock(pad->handle, 1))
                PARA_ERROR_LOG("failed to set nonblock mode\n");
+       tv_add(now, &(struct timeval ){0, 100 * 1000}, &pad->next_chunk);
        return period_size * pad->bytes_per_frame;
 }