diff options
| author | Martin Wilke <miwi@FreeBSD.org> | 2007-12-10 22:29:47 +0000 |
|---|---|---|
| committer | Martin Wilke <miwi@FreeBSD.org> | 2007-12-10 22:29:47 +0000 |
| commit | 72e8535d7a3d85419cc22db44eae481834e69afc (patch) | |
| tree | b6cb86094912efd70f4f947b3d2821fb10bad4b8 /audio/sphinx/files/patch-src-libsphinx2_cdcn_norm.c | |
| parent | - Fix build with GCC 4.2 (diff) | |
- Fix build with gcc 4.2
PR: 118467
Submitted by: Pietro Cerutti <gahr@gahr.ch>
Approved by: portmgr (erwin)
Diffstat (limited to 'audio/sphinx/files/patch-src-libsphinx2_cdcn_norm.c')
| -rw-r--r-- | audio/sphinx/files/patch-src-libsphinx2_cdcn_norm.c | 27 |
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..df6ab3080271 --- /dev/null +++ b/audio/sphinx/files/patch-src-libsphinx2_cdcn_norm.c @@ -0,0 +1,27 @@ +--- src/libsphinx2/cdcn_norm.c.orig 2007-12-06 19:24:33.000000000 +0100 ++++ src/libsphinx2/cdcn_norm.c 2007-12-06 19:26:24.000000000 +0100 +@@ -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; + |
