summaryrefslogtreecommitdiff
path: root/sms/soundIO.c
diff options
context:
space:
mode:
authorJohn Glover <john@87-198-49-167.ptr.magnet.ie>2010-12-03 10:59:37 +0000
committerJohn Glover <john@87-198-49-167.ptr.magnet.ie>2010-12-03 10:59:37 +0000
commit1ed63dfa233347fa0d57a977dec5396f0cfce840 (patch)
tree6bc6fc93b6153ef37abbca4faeb7415cede57e76 /sms/soundIO.c
parent6d21f1d6741851711e3bc589a44e194634c19eca (diff)
downloadsimpl-1ed63dfa233347fa0d57a977dec5396f0cfce840.tar.gz
simpl-1ed63dfa233347fa0d57a977dec5396f0cfce840.tar.bz2
simpl-1ed63dfa233347fa0d57a977dec5396f0cfce840.zip
Setting more initial values in analysis params
Diffstat (limited to 'sms/soundIO.c')
-rw-r--r--sms/soundIO.c10
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);
}