diff options
author | Miller Puckette <millerpuckette@users.sourceforge.net> | 2004-09-06 20:20:36 +0000 |
---|---|---|
committer | Miller Puckette <millerpuckette@users.sourceforge.net> | 2004-09-06 20:20:36 +0000 |
commit | ed932acb5860bf8b9296169676499562a55d139e (patch) | |
tree | dc6a40dba908deb07c175cd40ee19c197318f72d /pd/src/d_resample.c | |
parent | dad636821f6e7d3ead02c157f308c0ceeba9af3d (diff) |
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
Diffstat (limited to 'pd/src/d_resample.c')
-rw-r--r-- | pd/src/d_resample.c | 20 |
1 files changed, 10 insertions, 10 deletions
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)); |