aboutsummaryrefslogtreecommitdiff
path: root/iemlib1/src/mov_avrg_kern~.c
diff options
context:
space:
mode:
Diffstat (limited to 'iemlib1/src/mov_avrg_kern~.c')
-rw-r--r--iemlib1/src/mov_avrg_kern~.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/iemlib1/src/mov_avrg_kern~.c b/iemlib1/src/mov_avrg_kern~.c
index dbd680f..20a6f85 100644
--- a/iemlib1/src/mov_avrg_kern~.c
+++ b/iemlib1/src/mov_avrg_kern~.c
@@ -26,9 +26,9 @@ static t_class *mov_avrg_kern_tilde_class;
static t_int *mov_avrg_kern_tilde_perform(t_int *w)
{
- t_float *in_direct = (t_float *)(w[1]);
- t_float *in_delayed = (t_float *)(w[2]);
- t_float *out = (t_float *)(w[3]);
+ t_sample *in_direct = (t_sample *)(w[1]);
+ t_sample *in_delayed = (t_sample *)(w[2]);
+ t_sample *out = (t_sample *)(w[3]);
t_mov_avrg_kern_tilde *x = (t_mov_avrg_kern_tilde *)(w[4]);
int i, n = (int)(w[5]);
double wn0, wn1=x->x_wn1, a0=x->x_a0;
@@ -43,7 +43,7 @@ static t_int *mov_avrg_kern_tilde_perform(t_int *w)
for(i=0; i<n; i++)
{
wn0 = wn1 + a0*(double)(*in_direct++);
- *out++ = (t_float)wn0;
+ *out++ = (t_sample)wn0;
wn1 = wn0;
}
}
@@ -53,13 +53,13 @@ static t_int *mov_avrg_kern_tilde_perform(t_int *w)
for(i=0; i<counter; i++)
{
wn0 = wn1 + a0*(double)(*in_direct++);
- *out++ = (t_float)wn0;
+ *out++ = (t_sample)wn0;
wn1 = wn0;
}
for(i=counter; i<n; i++)
{
wn0 = wn1 + a0*(double)(*in_direct++ - *in_delayed++);
- *out++ = (t_float)wn0;
+ *out++ = (t_sample)wn0;
wn1 = wn0;
}
}
@@ -69,7 +69,7 @@ static t_int *mov_avrg_kern_tilde_perform(t_int *w)
for(i=0; i<n; i++)
{
wn0 = wn1 + a0*(double)(*in_direct++ - *in_delayed++);
- *out++ = (t_float)wn0;
+ *out++ = (t_sample)wn0;
wn1 = wn0;
}
}
@@ -120,7 +120,7 @@ static void *mov_avrg_kern_tilde_new(t_floatarg mstime)
inlet_new(&x->x_obj, &x->x_obj.ob_pd, &s_signal, &s_signal);
inlet_new(&x->x_obj, &x->x_obj.ob_pd, &s_float, gensym("ft1"));
outlet_new(&x->x_obj, &s_signal);
- x->x_float_sig_in = 0.0f;
+ x->x_float_sig_in = 0.0;
return(x);
}