summaryrefslogtreecommitdiff
path: root/sms/stocAnalysis.c
diff options
context:
space:
mode:
authorJohn Glover <john@john-glovers-macbook.local>2010-12-21 11:25:11 +0000
committerJohn Glover <john@john-glovers-macbook.local>2010-12-21 11:25:11 +0000
commit8373f12eaf63b6db27a1848202a86aeeb15c4d26 (patch)
tree4f00a58a2d9b4939ccc3225aa76d20570d793cc2 /sms/stocAnalysis.c
parent3f5c5d34d99b121bb621230a918b621a9524a015 (diff)
downloadsimpl-8373f12eaf63b6db27a1848202a86aeeb15c4d26.tar.gz
simpl-8373f12eaf63b6db27a1848202a86aeeb15c4d26.tar.bz2
simpl-8373f12eaf63b6db27a1848202a86aeeb15c4d26.zip
Fixing bugs in SMSResidual.
Diffstat (limited to 'sms/stocAnalysis.c')
-rw-r--r--sms/stocAnalysis.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sms/stocAnalysis.c b/sms/stocAnalysis.c
index d073ee7..802e41c 100644
--- a/sms/stocAnalysis.c
+++ b/sms/stocAnalysis.c
@@ -23,8 +23,6 @@
*/
#include "sms.h"
-#define ENV_THRESHOLD .01 /* \todo was this value for type shorts?? */
-
/*! \brief main function for the stochastic analysis
* \param sizeWindow size of buffer
* \param pResidual pointer to residual signal
@@ -38,7 +36,6 @@ int sms_stocAnalysis(int sizeWindow, sfloat *pResidual, sfloat *pWindow,
{
int i;
sfloat fMag = 0.0;
- sfloat fStocNorm;
sms_spectrumMag(sizeWindow, pResidual, pWindow, pAnalParams->sizeStocMagSpectrum,
pAnalParams->stocMagSpectrum, pAnalParams->fftBuffer);
@@ -53,8 +50,6 @@ int sms_stocAnalysis(int sizeWindow, sfloat *pResidual, sfloat *pWindow,
fMag += (pAnalParams->stocMagSpectrum[i] * pAnalParams->stocMagSpectrum[i]);
*pSmsData->pFStocGain = fMag / pAnalParams->sizeStocMagSpectrum;
- fStocNorm = 1. / *pSmsData->pFStocGain;
-
return 0;
}