From eedc9eafd60b670dd2b90fcbcc380f3f9a333f93 Mon Sep 17 00:00:00 2001 From: Andre Date: Tue, 30 May 2006 02:40:04 +0200 Subject: [PATCH] alsa_writer: switch back to buffer_time-based timeout calculation Fixes alsa software mixing --- alsa_writer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alsa_writer.c b/alsa_writer.c index 355da05e..5c329073 100644 --- a/alsa_writer.c +++ b/alsa_writer.c @@ -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); -- 2.39.5