From 4a05094c9a009707674c079c0481eaf8e1f8490f Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sat, 8 Oct 2011 17:22:41 +0000 Subject: 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 --- modules/bitsplit~.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/bitsplit~.c') 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> 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")); -- cgit v1.2.1