paqa: removed non standard and unused #include <strings.h>. updated definitions of pi to double precision

This commit is contained in:
rossb 2011-03-04 03:01:44 +00:00
commit c9322dac96
2 changed files with 3 additions and 5 deletions

View file

@ -41,7 +41,7 @@
#include "biquad_filter.h" #include "biquad_filter.h"
#define MATH_PI (3.14159265) #define MATH_PI (3.141592653589793238462643)
#define MATH_TWO_PI (2.0 * MATH_PI) #define MATH_TWO_PI (2.0 * MATH_PI)
typedef struct PaQaSineGenerator_s typedef struct PaQaSineGenerator_s

View file

@ -1,5 +1,4 @@
#include <math.h> #include <math.h>
#include <strings.h>
#include "biquad_filter.h" #include "biquad_filter.h"
@ -11,7 +10,7 @@
* @author (C) 2002 Phil Burk, SoftSynth.com, All Rights Reserved * @author (C) 2002 Phil Burk, SoftSynth.com, All Rights Reserved
*/ */
#define FILTER_PI (3.14159265) #define FILTER_PI (3.141592653589793238462643)
/*********************************************************** /***********************************************************
** Calculate coefficients common to many parametric biquad filters. ** Calculate coefficients common to many parametric biquad filters.
*/ */
@ -119,5 +118,4 @@ void BiquadFilter_Filter( BiquadFilter *filter, float *inputs, float *outputs, i
filter->xn2 = xn2; filter->xn2 = xn2;
filter->yn1 = yn1; filter->yn1 = yn1;
filter->yn2 = yn2; filter->yn2 = yn2;
} }