alsa_writer: switch back to buffer_time-based timeout calculation
authorAndre <maan@p133.(none)>
Tue, 30 May 2006 00:40:04 +0000 (02:40 +0200)
committerAndre <maan@p133.(none)>
Tue, 30 May 2006 00:40:04 +0000 (02:40 +0200)
Fixes alsa software mixing

alsa_writer.c

index 355da05..5c32907 100644 (file)
@@ -196,8 +196,8 @@ static void alsa_write_post_select(struct sched *s, struct task *t)
                t->ret = -E_ALSA_WRITE;
                return;
        }
-//     ms2tv(pad->buffer_time / 4000, &tv);
-       ms2tv(1, &tv);
+       ms2tv(pad->buffer_time / 4000, &tv);
+//     ms2tv(1, &tv);
        tv_add(&s->now, &tv, &pad->next_chunk);
        t->ret = ret * pad->bytes_per_frame;
 //     PARA_INFO_LOG("ret: %d, frames: %zd\n", t->ret, frames);