diff options
author | musil <tmusil@users.sourceforge.net> | 2006-11-07 17:11:40 +0000 |
---|---|---|
committer | musil <tmusil@users.sourceforge.net> | 2006-11-07 17:11:40 +0000 |
commit | dc2fd29b378aae1597fdc1954da0e01f75816bd4 (patch) | |
tree | adfb76ff53fe1f6f749ff2bf14f4e4b4a90cd36e /src/iemlib2/speedlim.c | |
parent | 31b7b9b1885e9ecd9f47602c1b571df34e18622b (diff) |
makefile_win makefile_linux update
we dont need #if MSW_VER
chanched float to t_float
svn path=/trunk/externals/iemlib/; revision=6221
Diffstat (limited to 'src/iemlib2/speedlim.c')
-rw-r--r-- | src/iemlib2/speedlim.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/iemlib2/speedlim.c b/src/iemlib2/speedlim.c index 9e29e0a..d0224fc 100644 --- a/src/iemlib2/speedlim.c +++ b/src/iemlib2/speedlim.c @@ -3,16 +3,9 @@ iemlib2 written by 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 <stdlib.h> -#include <string.h> -#include <stdio.h> /* ----------------------- speedlim -------------------------- */ /* -- reduces the flow of float-messages to one message per -- */ @@ -27,8 +20,8 @@ typedef struct _speedlim float x_delay; int x_output_is_locked; int x_there_was_n_event; - float x_curval; - float x_lastout; + t_float x_curval; + t_float x_lastout; } t_speedlim; static void speedlim_stop(t_speedlim *x) @@ -54,7 +47,7 @@ static void speedlim_tick(t_speedlim *x) } } -static void speedlim_float(t_speedlim *x, t_float val) +static void speedlim_float(t_speedlim *x, t_floatarg val) { x->x_curval = val; if(!x->x_output_is_locked) @@ -68,7 +61,7 @@ static void speedlim_float(t_speedlim *x, t_float val) x->x_there_was_n_event = 1; } -static void speedlim_ft1(t_speedlim *x, t_float delay) +static void speedlim_ft1(t_speedlim *x, t_floatarg delay) { if(delay < 0.0) delay = 0.0; @@ -80,7 +73,7 @@ static void speedlim_free(t_speedlim *x) clock_free(x->x_clock); } -static void *speedlim_new(t_float delay) +static void *speedlim_new(t_floatarg delay) { t_speedlim *x = (t_speedlim *)pd_new(speedlim_class); |