diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2010-05-04 19:40:09 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2010-05-04 19:40:09 +0000 |
commit | 9779bab9f4ee4e0e368ebb23b310635ad1c8baa3 (patch) | |
tree | 296427d4c5fae952047cb6e3374a0666b06f8876 /usr.bin | |
parent | 3866ddb5706f6394286a31b344c36f84f8608eae (diff) |
make the mixer process data as soon as it's pushed by one of its
inputs, i.e. don't way that the output requests it.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/aucat/aproc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/aucat/aproc.c b/usr.bin/aucat/aproc.c index d5ab22176f4..41f1158e98d 100644 --- a/usr.bin/aucat/aproc.c +++ b/usr.bin/aucat/aproc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aproc.c,v 1.57 2010/05/02 11:12:31 ratchov Exp $ */ +/* $OpenBSD: aproc.c,v 1.58 2010/05/04 19:40:08 ratchov Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org> * @@ -779,7 +779,7 @@ mix_in(struct aproc *p, struct abuf *ibuf) if (!MIX_ROK(ibuf)) return 0; scount = 0; - odone = obuf->w.mix.todo; + odone = obuf->len; for (i = LIST_FIRST(&p->ins); i != NULL; i = inext) { inext = LIST_NEXT(i, ient); if (i->r.mix.drop >= 0 && !abuf_fill(i)) |