0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-26 19:23:51 +01:00
This commit is contained in:
2025-03-27 18:12:35 +01:00
parent 6e374ce28b
commit 50d7e67896

View File

@@ -15,7 +15,7 @@ float hard_clip(float sample, float threshold) {
return fmaxf(-threshold, fminf(threshold, sample));
}
int init_chebyshev_lpf(Biquad* filter, float sample_rate, float cutoff_freq, float ripple_db, int order) {
void init_chebyshev_lpf(Biquad* filter, float sample_rate, float cutoff_freq, float ripple_db, int order) {
float eps = sqrt(pow(10, ripple_db/10.0) - 1.0);
float omega_c = 2.0f * M_PI * cutoff_freq / sample_rate;