diff options
author | John Glover <glover.john@gmail.com> | 2010-10-21 13:39:28 +0100 |
---|---|---|
committer | John Glover <glover.john@gmail.com> | 2010-10-21 13:39:28 +0100 |
commit | ce65c30264be9683dd3a59b35730d2f31e02d37f (patch) | |
tree | 90aaf2e77526af9ba099e76175956d0dd6a37633 /sms/filters.c | |
parent | b46b988f164f983fc889c7bc0c96953e4609d27a (diff) | |
download | simpl-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/filters.c')
-rw-r--r-- | sms/filters.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sms/filters.c b/sms/filters.c index 98ab246..b1ca9fc 100644 --- a/sms/filters.c +++ b/sms/filters.c @@ -65,14 +65,14 @@ sfloat sms_deEmphasis(sfloat fInput, SMS_SynthParams *pSynthParams) * \param fInput input sample * \return value is the filtered sample */ -static sfloat ZeroPoleFilter (float *pFa, sfloat *pFb, int nCoeff, sfloat fInput ) +static sfloat ZeroPoleFilter (sfloat *pFa, sfloat *pFb, int nCoeff, sfloat fInput ) { double fOut = 0; int iSection; /* static sfloat *pD = NULL; */ /* if (pD == NULL) */ -/* pD = (sfloat *) calloc(5, sizeof(float)); */ +/* pD = (sfloat *) calloc(5, sizeof(sfloat)); */ static sfloat pD[5] = {0, 0, 0, 0, 0}; pD[0] = fInput; |