summaryrefslogtreecommitdiff
path: root/sms/spectrum.c
diff options
context:
space:
mode:
authorJohn Glover <glover.john@gmail.com>2010-10-21 13:39:28 +0100
committerJohn Glover <glover.john@gmail.com>2010-10-21 13:39:28 +0100
commitce65c30264be9683dd3a59b35730d2f31e02d37f (patch)
tree90aaf2e77526af9ba099e76175956d0dd6a37633 /sms/spectrum.c
parentb46b988f164f983fc889c7bc0c96953e4609d27a (diff)
downloadsimpl-ce65c30264be9683dd3a59b35730d2f31e02d37f.tar.gz
simpl-ce65c30264be9683dd3a59b35730d2f31e02d37f.tar.bz2
simpl-ce65c30264be9683dd3a59b35730d2f31e02d37f.zip
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.
Diffstat (limited to 'sms/spectrum.c')
-rw-r--r--sms/spectrum.c4
1 files changed, 2 insertions, 2 deletions
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 *\/ */