From 1ed63dfa233347fa0d57a977dec5396f0cfce840 Mon Sep 17 00:00:00 2001 From: John Glover Date: Fri, 3 Dec 2010 10:59:37 +0000 Subject: Setting more initial values in analysis params --- sms/soundIO.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sms/soundIO.c') diff --git a/sms/soundIO.c b/sms/soundIO.c index 1f68506..2e2379b 100644 --- a/sms/soundIO.c +++ b/sms/soundIO.c @@ -25,7 +25,7 @@ /*! \brief fill the sound buffer * - * \param sizeWaveform size of input data + * \param sizeWaveform size of input data * \param pWaveform input data * \param pAnalParams pointer to structure of analysis parameters */ @@ -42,12 +42,12 @@ void sms_fillSoundBuffer(int sizeWaveform, sfloat *pWaveform, SMS_AnalParams *pA pAnalParams->soundBuffer.iMarker += sizeNewData; /* put the new data in, and do some pre-emphasis */ - if (pAnalParams->iAnalysisDirection == SMS_DIR_REV) - for (i=0; iiAnalysisDirection == SMS_DIR_REV) + for(i=0; isoundBuffer.pFBuffer[pAnalParams->soundBuffer.sizeBuffer - sizeNewData + i] = - sms_preEmphasis(pWaveform[sizeNewData - (1+ i)], pAnalParams); + sms_preEmphasis(pWaveform[sizeNewData - (1 + i)], pAnalParams); else - for (i=0; isoundBuffer.pFBuffer[pAnalParams->soundBuffer.sizeBuffer - sizeNewData + i] = sms_preEmphasis(pWaveform[i], pAnalParams); } -- cgit v1.2.3