write: Get rid of wn->chunk_bytes and wng->max_chunk_bytes.
[paraslash.git] / alsa_write.c
index d65cfb4..dfd2421 100644 (file)
@@ -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)