diff options
author | musil <tmusil@users.sourceforge.net> | 2012-09-06 15:54:46 +0000 |
---|---|---|
committer | musil <tmusil@users.sourceforge.net> | 2012-09-06 15:54:46 +0000 |
commit | 33dd6d603830640766aa1a5fe70137c856e2c145 (patch) | |
tree | 6e4a73f9100aec46971aa947a5f285c1d01ec35d /iemlib1/src/mov_avrg_kern~.c | |
parent | 48cb10a8590255f952f53f3ff558ce345b86a3fe (diff) |
other variable names, t_float to t_sample change, array access 64 bit
svn path=/trunk/externals/iemlib/; revision=16193
Diffstat (limited to 'iemlib1/src/mov_avrg_kern~.c')
-rw-r--r-- | iemlib1/src/mov_avrg_kern~.c | 16 |
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); } |