# HG changeset patch # User vitor # Date 1220566647 0 # Node ID da7996a575f3d825db6b5af2891705fbc3755db6 # Parent 209a9ad96a6caf7ee774ba01e56efdd882dff645 Cosmetics: s/LPC_type/LPC_TYPE/ diff -r 209a9ad96a6c -r da7996a575f3 lpc.h --- a/lpc.h Thu Sep 04 15:04:08 2008 +0000 +++ b/lpc.h Thu Sep 04 22:17:27 2008 +0000 @@ -46,22 +46,22 @@ int omethod, int max_shift, int zero_shift); #ifdef LPC_USE_DOUBLE -#define LPC_type double +#define LPC_TYPE double #else -#define LPC_type float +#define LPC_TYPE float #endif /** * Levinson-Durbin recursion. * Produces LPC coefficients from autocorrelation data. */ -static inline int compute_lpc_coefs(const LPC_type *autoc, int max_order, - LPC_type *lpc, int lpc_stride, int fail, +static inline int compute_lpc_coefs(const LPC_TYPE *autoc, int max_order, + LPC_TYPE *lpc, int lpc_stride, int fail, int normalize) { int i, j; - LPC_type err; - LPC_type *lpc_last = lpc; + LPC_TYPE err; + LPC_TYPE *lpc_last = lpc; if (normalize) err = *autoc++; @@ -70,7 +70,7 @@ return -1; for(i=0; i>1; j++) { - LPC_type f = lpc_last[ j]; - LPC_type b = lpc_last[i-1-j]; + LPC_TYPE f = lpc_last[ j]; + LPC_TYPE b = lpc_last[i-1-j]; lpc[ j] = f + r * b; lpc[i-1-j] = b + r * f; }