aboutsummaryrefslogtreecommitdiff
path: root/vrms.c
diff options
context:
space:
mode:
Diffstat (limited to 'vrms.c')
-rw-r--r--vrms.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vrms.c b/vrms.c
index 52b8d6d..ff7f33e 100644
--- a/vrms.c
+++ b/vrms.c
@@ -12,14 +12,14 @@ typedef struct _vrms
static void vrms_perform(t_vrms *x, t_symbol *s, int argc, t_atom *argv)
{
- float sum=0.f;
+ t_float sum=0.;
int i;
for (i = 0; i < argc; i++)
{
- float tmp=atom_getfloat(&argv[i]);
+ t_float tmp=atom_getfloat(&argv[i]);
sum+= tmp*tmp;
}
- outlet_float(x->x_obj.ob_outlet, (float)sqrtf(sum/argc));
+ outlet_float(x->x_obj.ob_outlet, (t_float)sqrtf(sum/argc));
}
static void *vrms_new( t_float halfDecayTime)