ports/audio/sphinx/files/patch-src_libsphinx2_cdcn__norm.c
Mathieu Arnold 7ae7b018cc 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
2016-06-20 16:23:28 +00:00

27 lines
1 KiB
C

--- 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;