summaryrefslogtreecommitdiff
path: root/audio/sphinx/files/patch-src_libsphinx2_cdcn__norm.c
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2016-06-20 16:23:28 +0000
committerMathieu Arnold <mat@FreeBSD.org>2016-06-20 16:23:28 +0000
commit7ae7b018ccf7760013f368fcb83aad9ecd8982a8 (patch)
treee83ee6693050a76e305a95a376451aa583df151e /audio/sphinx/files/patch-src_libsphinx2_cdcn__norm.c
parenttextproc/rubygem-gitlab-grit: make it work with rubygem-mime-types again (diff)
With the power of USES=dos2unix, get rid of most patches and files
with CRLF. While there, run make makepatch, rename patches to use the new scheme, and various fixes. With hat: portmgr Sponsored by: Absolight
Diffstat (limited to 'audio/sphinx/files/patch-src_libsphinx2_cdcn__norm.c')
-rw-r--r--audio/sphinx/files/patch-src_libsphinx2_cdcn__norm.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/audio/sphinx/files/patch-src_libsphinx2_cdcn__norm.c b/audio/sphinx/files/patch-src_libsphinx2_cdcn__norm.c
new file mode 100644
index 000000000000..bb94530dcf6a
--- /dev/null
+++ b/audio/sphinx/files/patch-src_libsphinx2_cdcn__norm.c
@@ -0,0 +1,27 @@
+--- src/libsphinx2/cdcn_norm.c.orig 2001-12-13 21:11:20 UTC
++++ src/libsphinx2/cdcn_norm.c
+@@ -35,6 +35,15 @@
+ */
+ #include <math.h>
+ #include "cdcn.h"
++static void
++actual_cdcn_norm(float variance[][NUM_COEFF+1], /* Speech cepstral variances of modes */
++ float *prob, /* Ratio of a-prori mode probs. to mod variance */
++ float *tilt, /* Spectral tilt cepstrum */
++ float *noise, /* Noise estimate */
++ float means[][NUM_COEFF+1], /* The cepstrum codebook */
++ float corrbook[][NUM_COEFF+1], /* The correction factor's codebook */
++ int num_codes, /* Number of codewords in codebook */
++ float z[NUM_COEFF+1]); /* The input cepstrum */
+
+ /************************************************************************
+ * Dummy routine to convert from suitcase to sane varibles
+@@ -43,8 +52,6 @@
+ void cdcn_norm (float z[NUM_COEFF+1], /* The input cepstrum */
+ CDCN_type *cdcn_variables)
+ {
+- /* Multidimensional arrays, yuck. */
+- static void actual_cdcn_norm();
+ float *variance, *prob, *tilt, *noise, *codebook, *corrbook;
+ int num_codes;
+