From 7188bb70dab1431ff5b00327333d3f15cf7b363d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Fri, 28 Aug 2015 20:57:32 +0000 Subject: use garray_getfloatwords() to make [flite] 64bit compatible svn path=/trunk/externals/moocow/; revision=17540 --- flite/flite.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/flite/flite.c b/flite/flite.c index 0120b47..b87380b 100644 --- a/flite/flite.c +++ b/flite/flite.c @@ -75,7 +75,7 @@ void flite_synth(t_flite *x) { cst_wave *wave; int i,vecsize; t_garray *a; - t_float *vec; + t_word *vec; # ifdef FLITE_DEBUG post("flite: got message 'synth'"); @@ -113,14 +113,15 @@ void flite_synth(t_flite *x) { # endif garray_resize(a, wave->num_samples); - if (!garray_getfloatarray(a, &vecsize, &vec)) + if (!garray_getfloatwords(a, &vecsize, &vec)) pd_error(x,"flite: bad template for write to array '%s'", x->x_arrayname->s_name); # ifdef FLITE_DEBUG post("flite: ->write to garray loop<-"); # endif for (i = 0; i < wave->num_samples; i++) { - *vec++ = wave->samples[i]/32767.0; + vec->w_float = wave->samples[i]/32767.0; + vec++; } // -- outlet synth-done-bang -- cgit v1.2.1