freebsd-ports/audio/sphinx/files/patch-src-libsphinx2_blk_cdcn_norm.c
Martin Wilke 72e8535d7a - Fix build with gcc 4.2
PR:		118467
Submitted by:	Pietro Cerutti <gahr@gahr.ch>
Approved by:	portmgr (erwin)
2007-12-10 22:29:47 +00:00

37 lines
1.6 KiB
C

--- src/libsphinx2/blk_cdcn_norm.c.orig 2007-12-06 19:23:43.000000000 +0100
+++ src/libsphinx2/blk_cdcn_norm.c 2007-12-06 19:23:25.000000000 +0100
@@ -36,6 +36,18 @@
#include <math.h>
#include "cdcn.h"
+static void
+block_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 */
+ int num_frames); /* Number of frames in utterance */
+
+
/************************************************************************
* Dummy routine to convert from suitcase to sane varibles
***************************************************************************/
@@ -46,7 +58,6 @@
{
/* Multidimensional arrays in C suck, so we have to
forward-declare-hack this. */
- static void block_actual_cdcn_norm();
float *variance, *prob, *tilt, *noise, *codebook, *corrbook;
int num_codes;
@@ -88,7 +99,6 @@
* Coded by Alex Acero (acero@s), November 1989
*
*************************************************************************/
-
static void
block_actual_cdcn_norm(float variance[][NUM_COEFF+1], /* Speech cepstral variances of modes */
float *prob, /* Ratio of a-prori mode probs. to mod variance */