From 1b055c6da6f7e81347154b73871c86ea7b435998 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Fri, 3 Jun 2011 20:14:07 +0200 Subject: [PATCH] don't forget to send the initial clock tick --- libsndio/sio_aucat.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libsndio/sio_aucat.c b/libsndio/sio_aucat.c index b69392b..38da2ed 100644 --- a/libsndio/sio_aucat.c +++ b/libsndio/sio_aucat.c @@ -101,6 +101,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);