X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=alsa_write.c;h=dfd2421d3f6ddc51eefd6aa5db98098f11389f01;hp=d65cfb4d01523db3f7479e62d8900de0dc3a2b1f;hb=4213f76d961629c7996c9d8c95171197f963e2f4;hpb=11f3700b4d2e932a31f953e1590ad5d64d1aa2d6 diff --git a/alsa_write.c b/alsa_write.c index d65cfb4d..dfd2421d 100644 --- a/alsa_write.c +++ b/alsa_write.c @@ -134,7 +134,7 @@ static int alsa_open(struct writer_node *w) 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; + return 1; } static int alsa_write_pre_select(struct sched *s, struct writer_node *wn)