Update of /cvsroot/pure-data/externals/zexy/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5089
Modified Files: demultiplex~.c Log Message: changed t_float to t_sample where appropriate
Index: demultiplex~.c =================================================================== RCS file: /cvsroot/pure-data/externals/zexy/src/demultiplex~.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** demultiplex~.c 5 Apr 2006 11:35:34 -0000 1.5 --- demultiplex~.c 25 Sep 2006 10:50:14 -0000 1.6 *************** *** 29,33 ****
int n_out; ! t_float **out;
} t_demux; --- 29,33 ----
int n_out; ! t_sample **out;
} t_demux; *************** *** 45,58 **** { t_demux *x = (t_demux *)(w[1]); ! t_float *in = (t_float *)(w[2]); int N = (int)(w[3]); int n = N;
- int channel=x->n_out;
- while(channel--){ ! t_float*out=x->out[channel]; n=N; if(x->output==channel){ --- 45,56 ---- { t_demux *x = (t_demux *)(w[1]); ! t_sample *in = (t_sample *)(w[2]); int N = (int)(w[3]); int n = N;
int channel=x->n_out;
while(channel--){ ! t_sample*out=x->out[channel]; n=N; if(x->output==channel){ *************** *** 67,71 **** { int n = x->n_out; ! t_float **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); --- 65,69 ---- { int n = x->n_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); *************** *** 83,87 **** static void demux_free(t_demux *x) { ! freebytes(x->out, x->n_out * sizeof(t_float *)); }
--- 81,85 ---- static void demux_free(t_demux *x) { ! freebytes(x->out, x->n_out * sizeof(t_sample *)); }
*************** *** 99,103 **** while(argc--)outlet_new(&x->x_obj, gensym("signal"));
! x->out = (t_float **)getbytes(x->n_out * sizeof(t_float *)); i=x->n_out; while(i--)x->out[i]=0; --- 97,101 ---- while(argc--)outlet_new(&x->x_obj, gensym("signal"));
! x->out = (t_sample **)getbytes(x->n_out * sizeof(t_sample *)); i=x->n_out; while(i--)x->out[i]=0;