aboutsummaryrefslogtreecommitdiffstats
path: root/src/libgoertzel/goertzel.h
blob: 58fcbb894ae75331457636be4dc4e9e220505f18 (plain)
1
2
3
4
5
6
7
8
9
10
double audio_level(sample_t *samples, int length);

typedef struct goertzel {
	double coeff;
} goertzel_t;

void audio_goertzel_init(goertzel_t *goertzel, double freq, int samplerate);
void audio_goertzel(goertzel_t *goertzel, sample_t *samples, int length, int offset, double *result, int k);