diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2009-01-13 17:03:08 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2009-01-13 17:03:08 +0000 |
commit | 2b8d4b4aa6c0e423bf4512c09261dca225954ba0 (patch) | |
tree | 6ab007be3ddcf89be9127d6521befd18b77556f2 /src/spec2_tab_conv~.c | |
parent | 78d3861035fad392bcf7b7a424931beaf589bc72 (diff) |
really made array access 64bit able
svn path=/trunk/externals/iem/iem_spec2/; revision=10531
Diffstat (limited to 'src/spec2_tab_conv~.c')
-rw-r--r-- | src/spec2_tab_conv~.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/spec2_tab_conv~.c b/src/spec2_tab_conv~.c index 42d279c..9b596ce 100644 --- a/src/spec2_tab_conv~.c +++ b/src/spec2_tab_conv~.c @@ -39,7 +39,8 @@ static t_int *spec2_tab_conv_tilde_perform(t_int *w) t_float *out = (t_float *)(w[2]); t_spec2_tab_conv_tilde *x = (t_spec2_tab_conv_tilde *)(w[3]); t_float sum=0.0f; - t_float *vec1, *vec2, *vec3, *win; + t_float *vec1, *vec2, *vec3; + iemarray_t*win; int i, m, n = (int)(w[4])+1; int j, ws=x->x_winsize; @@ -61,7 +62,7 @@ static t_int *spec2_tab_conv_tilde_perform(t_int *w) { sum = 0.0f; for(j=0; j<ws; j++) - sum += win[j] * vec2[j]; + sum += iemarray_getfloat(win, j) * vec2[j]; out[i] = sum; vec2++; } @@ -125,7 +126,7 @@ static void *spec2_tab_conv_tilde_new(t_symbol *s, int argc, t_atom *argv) argv++; x->x_winsize = (int)(atom_getint(argv)); x->x_spec = (t_float *)0; - x->x_beg_array = (t_float *)0; + x->x_beg_array = (iemarray_t *)0; x->x_blocksize = 0; x->x_has_changed = 1; outlet_new(&x->x_obj, &s_signal); |