]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 355da05e60b029982501f30393b06bb310ff4c7d..5c3290731dd3aff35ddc9b4a9929236e9b0df36e 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);