aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-09-25 10:50:14 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-09-25 10:50:14 +0000
commit5ca76f59c952737c4af9bb31facf8bd760bd619e (patch)
tree0ca0f79beb7d260640884e1e03ba847281103953 /src
parent3e1d4b561bb0178da0c7c8373506abd368eb1b3f (diff)
changed t_float to t_sample where appropriate
svn path=/trunk/externals/zexy/; revision=6021
Diffstat (limited to 'src')
-rw-r--r--src/demultiplex~.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/demultiplex~.c b/src/demultiplex~.c
index c31629e..acec4eb 100644
--- a/src/demultiplex~.c
+++ b/src/demultiplex~.c
@@ -28,7 +28,7 @@ typedef struct _demux {
int output;
int n_out;
- t_float **out;
+ t_sample **out;
} t_demux;
@@ -44,16 +44,14 @@ static void demux_output(t_demux *x, t_floatarg f)
static t_int *demux_perform(t_int *w)
{
t_demux *x = (t_demux *)(w[1]);
- t_float *in = (t_float *)(w[2]);
+ t_sample *in = (t_sample *)(w[2]);
int N = (int)(w[3]);
int n = N;
-
int channel=x->n_out;
-
while(channel--){
- t_float*out=x->out[channel];
+ t_sample*out=x->out[channel];
n=N;
if(x->output==channel){
while(n--)*out++=*in++;
@@ -66,7 +64,7 @@ static t_int *demux_perform(t_int *w)
static void demux_dsp(t_demux *x, t_signal **sp)
{
int n = x->n_out;
- t_float **dummy=x->out;
+ t_sample **dummy=x->out;
while(n--)*dummy++=sp[x->n_out-n]->s_vec;
dsp_add(demux_perform, 3, x, sp[0]->s_vec, sp[0]->s_n);
}
@@ -82,7 +80,7 @@ static void demux_helper(void)
static void demux_free(t_demux *x)
{
- freebytes(x->out, x->n_out * sizeof(t_float *));
+ freebytes(x->out, x->n_out * sizeof(t_sample *));
}
static void *demux_new(t_symbol *s, int argc, t_atom *argv)
@@ -98,7 +96,7 @@ static void *demux_new(t_symbol *s, int argc, t_atom *argv)
while(argc--)outlet_new(&x->x_obj, gensym("signal"));
- x->out = (t_float **)getbytes(x->n_out * sizeof(t_float *));
+ x->out = (t_sample **)getbytes(x->n_out * sizeof(t_sample *));
i=x->n_out;
while(i--)x->out[i]=0;