/****************************************************************************** * sigproc.cpp * *-------------* * *------------------------------------------------------------------------------ * Copyright (C) 1999 Entropic, Inc * Copyright (C) 2000 Microsoft Corporation Date: 03/02/00 * All Rights Reserved * ********************************************************************* PACOG ***/ #include "sigprocInt.h" #define PREEMP_FACTOR 0.97F /***************************************************************************** * Cepstrum * *----------* * Description: * compute lpc ceptrum form lpc coefficients * ******************************************************************* PACOG ***/ double* Cepstrum(double *pdData, int iNumData, int iLpcOrder, int iCepOrder) { double* pdCepCoef = 0; double* pdWindow = 0; double* pdLpcCoef = 0; assert(iLpcOrder > 0); assert(iCepOrder > 0); // get lpc coef pdWindow = ComputeWindow (WINDOW_HAMM, iNumData, false); if (!pdWindow) { return 0; } for (int i=1; i0); for (int i=0; i