commit 237ea00efb38e4f4408ead5b7805aa612769e323 from: Sven M. Hallberg date: Thu Nov 09 19:09:18 2023 UTC reset the clock in cwstart This is a workaround to guard against the possibility that the onmove callback is not called at all. This happens if playback has not started before cwstop(), and hence sio_stop(), is called. commit - 3f64dc1f60040ec3263499bb414cb69aefe967d9 commit + 237ea00efb38e4f4408ead5b7805aa612769e323 blob - 712a5322e29e362f25debe505976c5e3f1b5c376 blob + 80c2cfff465ec3f424bae3c6fcb6fdbfd270d10d --- cw.c +++ cw.c @@ -368,6 +368,7 @@ cwstart() timestamp("cwstart()\n"); #endif writ = pos = 0; + clock_gettime(CLOCK_MONOTONIC, &tplay); /* onmove(0) will update this */ if (!sio_start(hdl)) errx(1, "sio_start failed"); #ifdef DEBUGTIME