From ce65c30264be9683dd3a59b35730d2f31e02d37f Mon Sep 17 00:00:00 2001
From: John Glover <glover.john@gmail.com>
Date: Thu, 21 Oct 2010 13:39:28 +0100
Subject: Changed from floats to doubles in the C/C++ code, makes Python
 integration a bit easier. Fixed a bug that would cause SndObjSynthesis to
 crash if peak values were floats.

---
 sms/synthesis.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'sms/synthesis.c')

diff --git a/sms/synthesis.c b/sms/synthesis.c
index fd882c3..bba506c 100644
--- a/sms/synthesis.c
+++ b/sms/synthesis.c
@@ -211,7 +211,7 @@ static int StocSynthApprox (SMS_Data *pSmsData, SMS_SynthParams *pSynthParams)
         int sizeSpec1 = pSmsData->nCoeff;
         int sizeSpec2 = pSynthParams->sizeHop;
         int sizeFft = pSynthParams->sizeHop << 1; /* 50% overlap, so sizeFft is 2x sizeHop */
-        float fStocGain;
+        sfloat fStocGain;
         /* if no gain or no coefficients return  */
         if (*(pSmsData->pFStocGain) <= 0)
                 return 0;
-- 
cgit v1.2.3