Andreas Eversberg 7e45f556ce Correcting all levels and move all remaining integer samples to sample_t
The leves are based on the standards of each mobile network. They
are adjusted to the specified frequency deviation now.
2017-02-18 21:01:13 +01:00

15 lines
408 B
C

#ifndef _FILTER_H
#define _FILTER_H
typedef struct filter {
int iter;
double a0, a1, a2, b1, b2;
double z1[64], z2[64];
} filter_t;
void filter_lowpass_init(filter_t *bq, double frequency, int samplerate, int iterations);
void filter_highpass_init(filter_t *bq, double frequency, int samplerate, int iterations);
void filter_process(filter_t *bq, sample_t *samples, int length);
#endif /* _FILTER_H */