Skip to content
Snippets Groups Projects
Commit 0f47fd0f authored by Albert Gräf's avatar Albert Gräf
Browse files

64 bit fixes for moocow/flite.

parent 27f019df
No related branches found
No related tags found
1 merge request!8682.20.0, the rest of it
......@@ -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'");
......@@ -112,15 +112,15 @@ void flite_synth(t_flite *x) {
post("flite: garray_resize(%d)", wave->num_samples);
# endif
garray_resize(a, wave->num_samples);
if (!garray_getfloatarray(a, &vecsize, &vec))
garray_resize_long(a, wave->num_samples);
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[i].w_float = wave->samples[i]/32767.0;
}
// -- outlet synth-done-bang
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment