aboutsummaryrefslogtreecommitdiff
path: root/osc
diff options
context:
space:
mode:
authorMartin Peach <mrpeach@users.sourceforge.net>2007-07-12 15:25:36 +0000
committerMartin Peach <mrpeach@users.sourceforge.net>2007-07-12 15:25:36 +0000
commit9d4dbf04277754f2a120719bf41b17d40dcc6736 (patch)
tree1be74111625de72291c68abf3fdae5c2137dca4a /osc
parent46f6dfd6b86bb42438c3af364120f70250f1973d (diff)
Now outputs negative delays on right outlet. Immediate time tags will always output 0, "current" time tags will
always be slightly negative. svn path=/trunk/externals/mrpeach/; revision=8048
Diffstat (limited to 'osc')
-rwxr-xr-xosc/unpackOSC.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/osc/unpackOSC.c b/osc/unpackOSC.c
index 0cf3258..c4b39d1 100755
--- a/osc/unpackOSC.c
+++ b/osc/unpackOSC.c
@@ -621,7 +621,8 @@ static t_float unpackOSC_DeltaTime(OSCTimeTag tt)
ttusec = tt.seconds*onemillion + ONE_MILLION_OVER_TWO_TO_THE_32*tt.fraction;
nowusec = ttnow.seconds*onemillion + tv.tv_usec;
/* subtract now from tt to get delta time */
- if (ttusec < nowusec) return 0.0;
+ /* if (ttusec < nowusec) return 0.0; */
+ /*negative delays are all right */
delta = ttusec - nowusec;
return (float)(delta*0.001f);
}