diff options
author | musil <tmusil@users.sourceforge.net> | 2006-11-08 16:24:39 +0000 |
---|---|---|
committer | musil <tmusil@users.sourceforge.net> | 2006-11-08 16:24:39 +0000 |
commit | bd3d7f243bb5a105b99ce701774cf3d402396576 (patch) | |
tree | 21d6b9b9235b267381acd0ff2c6e49483cff8a1b /src/iem_t3_lib/t3_timer.c | |
parent | 458a70fa945c0e2630d9585d88424e900d0f3e66 (diff) |
change sig*.c to *~.c and sig* to *_tilde
change makefiles
svn path=/trunk/externals/iemlib/; revision=6235
Diffstat (limited to 'src/iem_t3_lib/t3_timer.c')
-rw-r--r-- | src/iem_t3_lib/t3_timer.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/iem_t3_lib/t3_timer.c b/src/iem_t3_lib/t3_timer.c index aa9c8b5..1169726 100644 --- a/src/iem_t3_lib/t3_timer.c +++ b/src/iem_t3_lib/t3_timer.c @@ -3,16 +3,9 @@ iem_t3_lib written by Gerhard Eckel, Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2005 */ -#ifdef _MSC_VER -#pragma warning( disable : 4244 ) -#pragma warning( disable : 4305 ) -#endif #include "m_pd.h" #include "iemlib.h" -#include <math.h> -#include <stdio.h> -#include <string.h> /* -------------------------- t3_timer ------------------------------ */ static t_class *t3_timer_class; @@ -24,13 +17,13 @@ typedef struct _t3_timer double x_t3_off; } t_t3_timer; -static void t3_timer_float(t_t3_timer *x, t_float t3_bang) +static void t3_timer_float(t_t3_timer *x, t_floatarg t3_bang) { x->x_settime = (double)clock_getsystime(); x->x_t3_off = (double)t3_bang; } -static void t3_timer_ft1(t_t3_timer *x, t_float t3_bang) +static void t3_timer_ft1(t_t3_timer *x, t_floatarg t3_bang) { outlet_float(x->x_obj.ob_outlet, clock_gettimesince(x->x_settime) + (double)t3_bang - x->x_t3_off); @@ -39,7 +32,7 @@ static void t3_timer_ft1(t_t3_timer *x, t_float t3_bang) static void *t3_timer_new(void) { t_t3_timer *x = (t_t3_timer *)pd_new(t3_timer_class); - t3_timer_float(x, 0.0); + t3_timer_float(x, 0.0f); outlet_new(&x->x_obj, &s_float); inlet_new(&x->x_obj, &x->x_obj.ob_pd, &s_float, gensym("ft1")); return (x); |