From 7ec32a6d2187d96c5b04dcea97ad0f7872e6731f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Thu, 30 Apr 2015 21:43:15 +0000 Subject: applied electrickery 64bit fix use garray_getfloatwords() rather than garray_getfloatarray() svn path=/trunk/externals/bsaylor/; revision=17463 --- pvoc~.c | 8 ++++---- 1 file 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; -- cgit v1.2.1