From 7d41c2213b5070d444fa17cdb04eeb9fdc955309 Mon Sep 17 00:00:00 2001 From: Katja Date: Sun, 6 Nov 2011 15:38:24 +0000 Subject: made smlib compliant with double precision svn path=/trunk/externals/smlib/; revision=15707 --- vthreshold.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'vthreshold.c') diff --git a/vthreshold.c b/vthreshold.c index 106cf72..5e0bef4 100644 --- a/vthreshold.c +++ b/vthreshold.c @@ -12,10 +12,10 @@ typedef struct _vthreshold t_outlet *x_outlet2; /* bang out for low thresh */ int *x_state; /* 1 = high, 0 = low */ int x_n; - float x_hithresh; /* value of high vthreshold */ - float x_lothresh; /* value of low vthreshold */ - float x_hideadtime; /* hi dead */ - float x_lodeadtime; /* lo dead */ + t_float x_hithresh; /* value of high vthreshold */ + t_float x_lothresh; /* value of low vthreshold */ + t_float x_hideadtime; /* hi dead */ + t_float x_lodeadtime; /* lo dead */ } t_vthreshold; /* "set" message to specify vthresholds and dead times */ @@ -62,14 +62,14 @@ static void vthreshold_perform(t_vthreshold *x, t_symbol *s, int argc, t_atom *a if (argc>x->x_n) argc=x->x_n; for (i=0;ix->x_hithresh) { - outlet_float(x->x_outlet1, (float)i); // on + outlet_float(x->x_outlet1, (t_float)i); // on *state=1; } } @@ -77,7 +77,7 @@ static void vthreshold_perform(t_vthreshold *x, t_symbol *s, int argc, t_atom *a { if (fx_lothresh) { - outlet_float(x->x_outlet2, (float)i); // off + outlet_float(x->x_outlet2, (t_float)i); // off *state=-1; } } -- cgit v1.2.1