Update of /cvsroot/pure-data/externals/mrpeach/osc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9286
Modified Files: unpackOSC.c Log Message: Now outputs negative delays on right outlet. Immediate time tags will always output 0, "current" time tags will always be slightly negative.
Index: unpackOSC.c =================================================================== RCS file: /cvsroot/pure-data/externals/mrpeach/osc/unpackOSC.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** unpackOSC.c 11 Jul 2007 20:38:37 -0000 1.5 --- unpackOSC.c 12 Jul 2007 15:25:36 -0000 1.6 *************** *** 622,626 **** nowusec = ttnow.seconds*onemillion + tv.tv_usec; /* subtract now from tt to get delta time */ ! if (ttusec < nowusec) return 0.0; delta = ttusec - nowusec; return (float)(delta*0.001f); --- 622,627 ---- nowusec = ttnow.seconds*onemillion + tv.tv_usec; /* subtract now from tt to get delta time */ ! /* if (ttusec < nowusec) return 0.0; */ ! /*negative delays are all right */ delta = ttusec - nowusec; return (float)(delta*0.001f);