init
This commit is contained in:
+36
@@ -0,0 +1,36 @@
|
||||
//
|
||||
// Created by bruno on 13. 7. 2026.
|
||||
//
|
||||
|
||||
#ifndef AUDIOCODER_GOERTZEL_H
|
||||
#define AUDIOCODER_GOERTZEL_H
|
||||
|
||||
typedef struct {
|
||||
float coeff;
|
||||
|
||||
float s1;
|
||||
float s2;
|
||||
} Goertzel;
|
||||
|
||||
|
||||
void goertzel_init(
|
||||
Goertzel *g,
|
||||
float freq,
|
||||
float sampleRate,
|
||||
int samples);
|
||||
|
||||
|
||||
void goertzel_add(
|
||||
Goertzel *g,
|
||||
float sample);
|
||||
|
||||
|
||||
float goertzel_energy(
|
||||
Goertzel *g);
|
||||
|
||||
int goertzel_bin_freq(
|
||||
int freq,
|
||||
int sampleRate,
|
||||
int samples);
|
||||
|
||||
#endif //AUDIOCODER_GOERTZEL_H
|
||||
Reference in New Issue
Block a user