0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-26 19:23:51 +01:00

correct the fm mod

This commit is contained in:
2025-03-10 21:44:42 +01:00
parent 67fe502183
commit b3303abded
3 changed files with 3 additions and 24 deletions

View File

@@ -1,5 +1,4 @@
#pragma once
#define FILTER_TAPS 256
#include <math.h>
#include <string.h>
#include <stdlib.h>
@@ -14,8 +13,4 @@ typedef struct
void init_preemphasis(ResistorCapacitor *filter, float tau, float sample_rate);
float apply_preemphasis(ResistorCapacitor *filter, float sample);
float hard_clip(float sample, float threshold);
float voltage_db_to_voltage(float db);
float power_db_to_voltage(float db);
float voltage_to_voltage_db(float linear);
float voltage_to_power_db(float linear);
float hard_clip(float sample, float threshold);