mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-27 03:23:54 +01:00
oh
This commit is contained in:
@@ -14,6 +14,10 @@ float hard_clip(float sample, float threshold) {
|
||||
return fmaxf(-threshold, fminf(threshold, sample));
|
||||
}
|
||||
|
||||
float sincf(float x) {
|
||||
return (x == 0.0f) ? 1.0f : sinf(M_PI * x) / (M_PI * x);
|
||||
}
|
||||
|
||||
void init_bpf(FIRFilter *bpf, float start, float end) {
|
||||
int m = FILTER_LEN - 1;
|
||||
float sum = 0.0f;
|
||||
|
||||
Reference in New Issue
Block a user