From ed932acb5860bf8b9296169676499562a55d139e Mon Sep 17 00:00:00 2001 From: Miller Puckette Date: Mon, 6 Sep 2004 20:20:36 +0000 Subject: checking in version 0.38test5. Oops, I realize I forgot some more nice files, will add them and re-commit. svn path=/trunk/; revision=2010 --- pd/src/d_resample.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'pd/src/d_resample.c') diff --git a/pd/src/d_resample.c b/pd/src/d_resample.c index 83ed7498..e8a0a598 100644 --- a/pd/src/d_resample.c +++ b/pd/src/d_resample.c @@ -134,9 +134,9 @@ void resample_free(t_resample *x) /* dsp-adding */ void resample_dsp(t_resample *x, - t_sample* in, int insize, - t_sample* out, int outsize, - int method) + t_sample* in, int insize, + t_sample* out, int outsize, + int method) { if (insize == outsize){ bug("nothing to be done"); @@ -165,9 +165,9 @@ void resample_dsp(t_resample *x, break; case 2: if (x->bufsize != 1) { - t_freebytes(x->buffer, x->bufsize*sizeof(*x->buffer)); - x->bufsize = 1; - x->buffer = t_getbytes(x->bufsize*sizeof(*x->buffer)); + t_freebytes(x->buffer, x->bufsize*sizeof(*x->buffer)); + x->bufsize = 1; + x->buffer = t_getbytes(x->bufsize*sizeof(*x->buffer)); } dsp_add(upsampling_perform_linear, 5, x, in, out, outsize/insize, insize); break; @@ -178,8 +178,8 @@ void resample_dsp(t_resample *x, } void resamplefrom_dsp(t_resample *x, - t_sample *in, - int insize, int outsize, int method) + t_sample *in, + int insize, int outsize, int method) { if (insize==outsize) { t_freebytes(x->s_vec, x->s_n * sizeof(*x->s_vec)); @@ -201,8 +201,8 @@ void resamplefrom_dsp(t_resample *x, } void resampleto_dsp(t_resample *x, - t_sample *out, - int insize, int outsize, int method) + t_sample *out, + int insize, int outsize, int method) { if (insize==outsize) { if (x->s_n)t_freebytes(x->s_vec, x->s_n * sizeof(*x->s_vec)); -- cgit v1.2.1