1
0
mirror of https://github.com/ericonr/sndio.git synced 2024-02-18 04:45:21 -06:00

don't forget to send the initial clock tick

This commit is contained in:
Alexandre Ratchov 2011-06-03 20:14:07 +02:00
parent f945cd7996
commit 1b055c6da6

View File

@ -101,6 +101,10 @@ sio_aucat_runmsg(struct sio_aucat_hdl *hdl)
DPRINTF("aucat: pos = %d, maxwrite = %d\n", DPRINTF("aucat: pos = %d, maxwrite = %d\n",
delta, hdl->maxwrite); delta, hdl->maxwrite);
hdl->delta = delta; hdl->delta = delta;
if (hdl->delta >= 0) {
sio_onmove_cb(&hdl->sio, hdl->delta);
hdl->delta = 0;
}
break; break;
case AMSG_MOVE: case AMSG_MOVE:
delta = ntohl(hdl->aucat.rmsg.u.ts.delta); delta = ntohl(hdl->aucat.rmsg.u.ts.delta);