From ce65c30264be9683dd3a59b35730d2f31e02d37f Mon Sep 17 00:00:00 2001 From: John Glover 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/spectrum.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sms/spectrum.c') diff --git a/sms/spectrum.c b/sms/spectrum.c index 8fc1077..c7d815a 100644 --- a/sms/spectrum.c +++ b/sms/spectrum.c @@ -312,14 +312,14 @@ void sms_spectrumRMS( int sizeMag, sfloat *pInRect, sfloat *pOutMag) * sfloat *pFWaveform output waveform * int sizeWave size of output waveform */ -/* int sms_invSpectrum (sfloat *pFMagSpectrum, float *pFPhaseSpectrum, */ +/* int sms_invSpectrum (sfloat *pFMagSpectrum, sfloat *pFPhaseSpectrum, */ /* int sizeFft, sfloat *pFWaveform, int sizeWave) */ /* { */ /* int sizeMag = sizeFft >> 1, i, it2; */ /* sfloat *pFBuffer, fPower; */ /* /\* allocate buffer *\/ */ -/* if ((pFBuffer = (sfloat *) calloc(sizeFft+1, sizeof(float))) == NULL) */ +/* if ((pFBuffer = (sfloat *) calloc(sizeFft+1, sizeof(sfloat))) == NULL) */ /* return -1; */ /* /\* convert from polar coordinates to rectangular *\/ */ -- cgit v1.2.3