aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2015-04-30 21:43:15 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 13:36:01 +0200
commit7ec32a6d2187d96c5b04dcea97ad0f7872e6731f (patch)
treecbd9ec31e0cec7885639b3b10d788d4593425c90
parent35b16d6d1b93b3093a4005d406c412f68078d9e1 (diff)
applied electrickery 64bit fixHEADsvn2git-head.0master
use garray_getfloatwords() rather than garray_getfloatarray() svn path=/trunk/externals/bsaylor/; revision=17463
-rw-r--r--pvoc~.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pvoc~.c b/pvoc~.c
index c6c76ce..6c03d92 100644
--- a/pvoc~.c
+++ b/pvoc~.c
@@ -47,7 +47,7 @@ typedef struct _pvoc {
t_object x_obj;
t_symbol *arrayname;
t_garray *arrayobj;
- t_float *array;
+ t_word *array;
int arraysize;
double *window;
int fftsize;
@@ -90,8 +90,8 @@ static inline double interpolate(t_pvoc *x, double t)
return 0.0;
else {
int x_1 = t;
- double y_1 = x->array[x_1];
- double y_2 = x->array[x_1 + 1];
+ double y_1 = x->array[x_1].w_float;
+ double y_2 = x->array[x_1 + 1].w_float;
return (y_2 - y_1) * (t - x_1) + y_1;
}
@@ -281,7 +281,7 @@ static void setarray(t_pvoc *x, t_symbol *s)
if (*x->arrayname->s_name) pd_error(x, "pvoc~: %s: no such array", x->arrayname->s_name);
x->array = NULL;
x->arraysize = 0;
- } else if ( ! garray_getfloatarray(x->arrayobj, &x->arraysize, &x->array)) {
+ } else if ( ! garray_getfloatwords(x->arrayobj, &x->arraysize, &x->array)) {
error("%s: bad template", x->arrayname->s_name);
x->array = NULL;
x->arraysize = 0;