aboutsummaryrefslogtreecommitdiff
path: root/pd/src/d_resample.c
diff options
context:
space:
mode:
Diffstat (limited to 'pd/src/d_resample.c')
-rw-r--r--pd/src/d_resample.c20
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));