projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a95093c
)
alsa_writer: switch back to buffer_time-based timeout calculation
author
Andre
<maan@p133.(none)>
Tue, 30 May 2006 00:40:04 +0000
(
02:40
+0200)
committer
Andre
<maan@p133.(none)>
Tue, 30 May 2006 00:40:04 +0000
(
02:40
+0200)
Fixes alsa software mixing
alsa_writer.c
patch
|
blob
|
history
diff --git
a/alsa_writer.c
b/alsa_writer.c
index 355da05e60b029982501f30393b06bb310ff4c7d..5c3290731dd3aff35ddc9b4a9929236e9b0df36e 100644
(file)
--- 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);