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/bitsplit~.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/bitsplit~.c')
-rw-r--r-- | modules/bitsplit~.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/bitsplit~.c b/modules/bitsplit~.c index e89b078..bed3750 100644 --- a/modules/bitsplit~.c +++ b/modules/bitsplit~.c @@ -51,9 +51,9 @@ static t_int *bitsplit_perform(t_int *word) t_int i,j; for (i=0;i<n;i++){ - long word = (in[i] * (float)(0x7fffffff)); + long word = (in[i] * (t_float)(0x7fffffff)); for (j=0; j<outputs; j++){ - out[j][i] = (float)((word >> 31) & 1); + out[j][i] = (t_float)((word >> 31) & 1); word <<= 1; } } @@ -90,7 +90,7 @@ static void *bitsplit_new(t_floatarg channels) if (i<1) i = 1; if (i>MAXCHANNELS) i = MAXCHANNELS; x->x_ctl.c_outputs = i; - x->x_ctl.c_output = malloc(sizeof(float)*i); + x->x_ctl.c_output = malloc(sizeof(t_float)*i); while (i--) outlet_new(&x->x_obj, gensym("signal")); |