From a2704c86955830fda9ef4c8de9dca5ae95eb7f2a Mon Sep 17 00:00:00 2001 From: John Glover Date: Fri, 17 Dec 2010 15:59:42 +0000 Subject: Added an option in SMS_AnalParams/SMS_SynthParams to enable/disable pre-emphasis (still enabled by default). --- sms/sms.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sms/sms.h') diff --git a/sms/sms.h b/sms/sms.h index 6e5e407..f998145 100644 --- a/sms/sms.h +++ b/sms/sms.h @@ -242,6 +242,7 @@ typedef struct int analDelay; /*! number of frames in the past to be looked in possible re-analyze */ sfloat fResidualAccumPerc; /*!< accumalitive residual percentage */ int sizeNextRead; /*!< size of samples to read from sound file next analysis */ + int preEmphasis; /*!< whether or not to perform pre-emphasis */ sfloat preEmphasisLastValue; SMS_Data prevFrame; /*!< the previous analysis frame */ SMS_SEnvParams specEnvParams; /*!< all data for spectral enveloping */ @@ -306,6 +307,7 @@ typedef struct int origSizeHop; /*!< original number of samples used to create each analysis frame */ int nTracks; int nStochasticCoeff; + int deEmphasis; /*!< whether or not to perform de-emphasis */ sfloat deEmphasisLastValue; sfloat *pFDetWindow; /*!< array to hold the window used for deterministic synthesis \see SMS_WIN_IFFT */ sfloat *pFStocWindow; /*!< array to hold the window used for stochastic synthesis (Hanning) */ -- cgit v1.2.3