summaryrefslogtreecommitdiff
path: root/sms/sms.c
diff options
context:
space:
mode:
authorJohn Glover <john@john-glovers-macbook.local>2010-12-17 15:59:42 +0000
committerJohn Glover <john@john-glovers-macbook.local>2010-12-17 15:59:42 +0000
commita2704c86955830fda9ef4c8de9dca5ae95eb7f2a (patch)
treef849ea6610e2f349fe9179fd0ba966f34a196d82 /sms/sms.c
parent97292e56442aa9442ee8863ea320e6e54c1c6fbf (diff)
downloadsimpl-a2704c86955830fda9ef4c8de9dca5ae95eb7f2a.tar.gz
simpl-a2704c86955830fda9ef4c8de9dca5ae95eb7f2a.tar.bz2
simpl-a2704c86955830fda9ef4c8de9dca5ae95eb7f2a.zip
Added an option in SMS_AnalParams/SMS_SynthParams to enable/disable pre-emphasis (still enabled by default).
Diffstat (limited to 'sms/sms.c')
-rw-r--r--sms/sms.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sms/sms.c b/sms/sms.c
index 89bfa9f..8294224 100644
--- a/sms/sms.c
+++ b/sms/sms.c
@@ -139,6 +139,7 @@ void sms_initAnalParams(SMS_AnalParams *pAnalParams)
pAnalParams->iMaxDelayFrames = MAX(pAnalParams->iMinTrackLength, pAnalParams->iMaxSleepingTime) + 2 +
(pAnalParams->minGoodFrames + pAnalParams->analDelay);
pAnalParams->fResidualAccumPerc = 0.;
+ pAnalParams->preEmphasis = 1; /*!< perform pre-emphasis by default */
pAnalParams->preEmphasisLastValue = 0.;
/* spectral envelope params */
pAnalParams->specEnvParams.iType = SMS_ENV_NONE; /* turn off enveloping */
@@ -412,6 +413,7 @@ void sms_initSynthParams(SMS_SynthParams *synthParams)
synthParams->pPhaseBuff = NULL;
synthParams->pSpectra = NULL;
synthParams->approxEnvelope = NULL;
+ synthParams->deEmphasis = 1; /*!< perform de-emphasis by default */
synthParams->deEmphasisLastValue = 0;
}