summaryrefslogtreecommitdiff
path: root/sms/synthesis.c
diff options
context:
space:
mode:
Diffstat (limited to 'sms/synthesis.c')
-rw-r--r--sms/synthesis.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sms/synthesis.c b/sms/synthesis.c
index 3a7682a..8a679ca 100644
--- a/sms/synthesis.c
+++ b/sms/synthesis.c
@@ -39,8 +39,8 @@ static void SineSynthIFFT(SMS_Data *pSmsData, SMS_SynthParams *pSynthParams)
sfloat fMag=0.0, fFreq=0.0, fPhase=0.0, fLoc, fSin, fCos, fBinRemainder,
fTmp, fNewMag, fIndex;
sfloat fSamplingPeriod = 1.0 / pSynthParams->iSamplingRate;
- memset (pSynthParams->pSpectra, 0, sizeFft * sizeof(sfloat));
- for (i = 0; i < nTracks; i++)
+ memset(pSynthParams->pSpectra, 0, sizeFft * sizeof(sfloat));
+ for(i = 0; i < nTracks; i++)
{
if(((fMag = pSmsData->pFSinAmp[i]) > 0) &&
((fFreq = (pSmsData->pFSinFreq[i])) < iHalfSamplingRate))
@@ -52,7 +52,7 @@ static void SineSynthIFFT(SMS_Data *pSmsData, SMS_SynthParams *pSynthParams)
fMag = sms_dBToMag(fMag);
fTmp = pSynthParams->prevFrame.pFSinPha[i] +
- TWO_PI * fFreq * fSamplingPeriod * sizeMag;
+ TWO_PI * fFreq * fSamplingPeriod * sizeMag;
fPhase = fTmp - floor(fTmp * INV_TWO_PI) * TWO_PI;
fLoc = sizeFft * fFreq * fSamplingPeriod;
iFirstBin = (int) fLoc - 3;