aboutsummaryrefslogtreecommitdiff
path: root/flite
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2015-08-28 20:57:32 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2015-08-28 20:57:32 +0000
commit7188bb70dab1431ff5b00327333d3f15cf7b363d (patch)
tree83b412fc79a98eb5b24575fb7cfd208663c23dd0 /flite
parent9a9de97a74115b205c0f1f697bb0a415a631c965 (diff)
use garray_getfloatwords() to make [flite] 64bit compatibleHEADsvn2git-headexternals/moocow
svn path=/trunk/externals/moocow/; revision=17540
Diffstat (limited to 'flite')
-rw-r--r--flite/flite.c7
1 files 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