diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-10-08 17:22:41 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-10-08 17:22:41 +0000 |
commit | 4a05094c9a009707674c079c0481eaf8e1f8490f (patch) | |
tree | d63533d6b056451337017faa6deb69ea55788c2e /modules/junction~.c | |
parent | c39d22e4bd9c3b06c4199ea59d0a7faa51401f7f (diff) |
converted float to t_float to support double-precision Pd, creb still needs to separate t_float and t_sample tho
svn path=/trunk/externals/creb/; revision=15546
Diffstat (limited to 'modules/junction~.c')
-rw-r--r-- | modules/junction~.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/junction~.c b/modules/junction~.c index 71476da..8ffd801 100644 --- a/modules/junction~.c +++ b/modules/junction~.c @@ -101,7 +101,7 @@ static t_int *junction_perform(t_int *w) mayer_realfft(c, buf); for (j=1; j<c/2; j++) { - float x,y,a,b; + t_float x,y,a,b; x = buf[j]; y = buf[c-j]; a = coef[j]; @@ -132,7 +132,7 @@ static t_int *junction_perform(t_int *w) static void junction_dsp(t_junction *x, t_signal **sp) { int i, c = x->x_ctl.c_channels; - float norm; + t_float norm; for (i=0;i<c;i++) { @@ -182,10 +182,10 @@ void *junction_new(t_floatarg channels) for (i=1;i<n;i++) inlet_new(&x->x_obj, &x->x_obj.ob_pd, gensym("signal"), gensym("signal")); for (i=0;i<n;i++) outlet_new(&x->x_obj, gensym("signal")); - x->x_ctl.c_in = (float **)malloc(n*sizeof(float *)); - x->x_ctl.c_out = (float **)malloc(n*sizeof(float *)); - x->x_ctl.c_buffer = (float *)malloc(n*sizeof(float)); - x->x_ctl.c_coef = (float *)malloc(n*sizeof(float)); + x->x_ctl.c_in = (t_float **)malloc(n*sizeof(t_float *)); + x->x_ctl.c_out = (t_float **)malloc(n*sizeof(t_float *)); + x->x_ctl.c_buffer = (t_float *)malloc(n*sizeof(t_float)); + x->x_ctl.c_coef = (t_float *)malloc(n*sizeof(t_float)); x->x_ctl.c_channels = n; junction_bang(x); |