diff options
Diffstat (limited to 'sms/soundIO.c')
-rw-r--r-- | sms/soundIO.c | 10 |
1 files changed, 5 insertions, 5 deletions
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; i<sizeNewData; i++) + if(pAnalParams->iAnalysisDirection == SMS_DIR_REV) + for(i=0; i<sizeNewData; i++) pAnalParams->soundBuffer.pFBuffer[pAnalParams->soundBuffer.sizeBuffer - sizeNewData + i] = - sms_preEmphasis(pWaveform[sizeNewData - (1+ i)], pAnalParams); + sms_preEmphasis(pWaveform[sizeNewData - (1 + i)], pAnalParams); else - for (i=0; i<sizeNewData; i++) + for(i=0; i<sizeNewData; i++) pAnalParams->soundBuffer.pFBuffer[pAnalParams->soundBuffer.sizeBuffer - sizeNewData + i] = sms_preEmphasis(pWaveform[i], pAnalParams); } |