[SCM] pd-flite/master: Patch for 64bit compatible array access

umlaeute at users.alioth.debian.org umlaeute at users.alioth.debian.org
Thu Nov 10 09:51:27 UTC 2016


The following commit has been merged in the master branch:
commit 5d80feb0e31b17789fbccfff9e52341785bd04e4
Author: IOhannes m zmölnig <zmoelnig at umlautQ.umlaeute.mur.at>
Date:   Thu Nov 10 10:46:25 2016 +0100

    Patch for 64bit compatible array access
    
    Closes: #792718

diff --git a/debian/patches/garray64.patch b/debian/patches/garray64.patch
new file mode 100644
index 0000000..2da442f
--- /dev/null
+++ b/debian/patches/garray64.patch
@@ -0,0 +1,37 @@
+Description: 64bit compatible access of arrays
+Author: IOhannes m zmölnig
+Forwarded: no
+Last-Update: 2016-11-10
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- pd-flite.orig/flite.c
++++ pd-flite/flite.c
+@@ -75,7 +75,7 @@
+   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,16 @@
+ # 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);
++  if (wave->num_samples < vecsize)
++    vecsize = wave->num_samples;
+ 
+ # ifdef FLITE_DEBUG
+   post("flite: ->write to garray loop<-");
+ # endif
+-  for (i = 0; i < wave->num_samples; i++) {
+-    *vec++ = wave->samples[i]/32767.0;
++  for (i = 0; i < vecsize; i++) {
++    vec[i].w_float = wave->samples[i]/32767.0;
+   }
+ 
+   // -- outlet synth-done-bang
diff --git a/debian/patches/series b/debian/patches/series
index 93247f5..1c625dd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 fix-help-files-install-dir.patch
 reproducible-build.patch
+garray64.patch

-- 
pd-flite packaging



More information about the pkg-multimedia-commits mailing list