From 67bd3b7ce79f82b495328c774dc4692d9f6447c9 Mon Sep 17 00:00:00 2001 From: John Glover Date: Wed, 8 Dec 2010 16:12:33 +0000 Subject: Fixed a SMS issue in sms_initSynth where having a hop size that was not a power of 2 would stop execution. Fixed another SMS test. --- sms/synthesis.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sms/synthesis.c') diff --git a/sms/synthesis.c b/sms/synthesis.c index 3a8a3bb..c7439f1 100644 --- a/sms/synthesis.c +++ b/sms/synthesis.c @@ -182,7 +182,7 @@ void sms_synthesize(SMS_Data *pSmsData, sfloat *pFSynthesis, SMS_SynthParams *p else if(pSynthParams->iSynthesisType == SMS_STYPE_DET) { if(pSynthParams->iDetSynthType == SMS_DET_IFFT) - SineSynthIFFT (pSmsData, pSynthParams); + SineSynthIFFT(pSmsData, pSynthParams); else /*pSynthParams->iDetSynthType == SMS_DET_SIN*/ { sms_sineSynthFrame(pSmsData, pSynthParams->pSynthBuff, pSynthParams->sizeHop, @@ -196,5 +196,3 @@ void sms_synthesize(SMS_Data *pSmsData, sfloat *pFSynthesis, SMS_SynthParams *p for(i = 0; i < sizeHop; i++) pFSynthesis[i] = sms_deEmphasis(pSynthParams->pSynthBuff[i], pSynthParams); } - - -- cgit v1.2.3