summaryrefslogtreecommitdiff
path: root/lib/libsndio/sio_aucat.c
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2011-06-03 18:09:26 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2011-06-03 18:09:26 +0000
commitebb93f295da05af01af29361adc5b83b1e5f1a0b (patch)
tree91f87a68d7824f2aeadfba94eccec93e4b02796f /lib/libsndio/sio_aucat.c
parente723cd489692aa95f2949fcd8a01463ea864bfc9 (diff)
don't forget to send the initial clock tick
Diffstat (limited to 'lib/libsndio/sio_aucat.c')
-rw-r--r--lib/libsndio/sio_aucat.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libsndio/sio_aucat.c b/lib/libsndio/sio_aucat.c
index 8186298d967..a3f9472993d 100644
--- a/lib/libsndio/sio_aucat.c
+++ b/lib/libsndio/sio_aucat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sio_aucat.c,v 1.6 2011/05/02 22:32:29 ratchov Exp $ */
+/* $OpenBSD: sio_aucat.c,v 1.7 2011/06/03 18:09:25 ratchov Exp $ */
/*
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
*
@@ -100,6 +100,10 @@ sio_aucat_runmsg(struct sio_aucat_hdl *hdl)
DPRINTF("aucat: pos = %d, maxwrite = %d\n",
delta, hdl->maxwrite);
hdl->delta = delta;
+ if (hdl->delta >= 0) {
+ sio_onmove_cb(&hdl->sio, hdl->delta);
+ hdl->delta = 0;
+ }
break;
case AMSG_MOVE:
delta = ntohl(hdl->aucat.rmsg.u.ts.delta);