summaryrefslogtreecommitdiff
path: root/usr.bin/aucat
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2010-05-08 12:29:09 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2010-05-08 12:29:09 +0000
commit9963b2e5d0ecc2bb3ff19cdb0033fd0fbdf9f165 (patch)
tree15cd3ca610c268394c32bfa9eda9e25367a5d655 /usr.bin/aucat
parent917ed437406368de6aa4d22b3eb18388fb23299c (diff)
don't take into account recording latency in dev_getpos(), since
dev_sync() always discards any recorded samples
Diffstat (limited to 'usr.bin/aucat')
-rw-r--r--usr.bin/aucat/dev.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/usr.bin/aucat/dev.c b/usr.bin/aucat/dev.c
index 59cb85c88cc..2ac3bfcfae2 100644
--- a/usr.bin/aucat/dev.c
+++ b/usr.bin/aucat/dev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev.c,v 1.53 2010/05/07 07:13:21 ratchov Exp $ */
+/* $OpenBSD: dev.c,v 1.54 2010/05/08 12:29:08 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -868,16 +868,12 @@ int
dev_getpos(void)
{
struct abuf *mbuf = NULL;
- int lat;
- lat = 0;
if (APROC_OK(dev_mix)) {
mbuf = LIST_FIRST(&dev_mix->outs);
- lat -= mbuf->w.mix.todo + dev_mix->u.mix.lat;
- }
- if (APROC_OK(dev_sub))
- lat -= dev_sub->u.sub.lat;
- return lat;
+ return mbuf->w.mix.todo + dev_mix->u.mix.lat;
+ } else
+ return 0;
}
/*