From 13d579d94ef5e088112438590c2a2ee8f80cf879 Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sun, 3 May 2026 18:34:41 +0200 Subject: [PATCH] again, whoops --- filter/bs412.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/filter/bs412.c b/filter/bs412.c index d710adc..20eb240 100644 --- a/filter/bs412.c +++ b/filter/bs412.c @@ -8,11 +8,11 @@ inline float dbr_to_deviation(float dbr) { return 19000.0f * sqrtf(pow(10.0, dbr / 10.0)); } -// #define SQRT19000 180499999.99999997f // (19000 / sqrt(2)) * 19000 / sqrt(2) -// inline float deviation_to_dbr(float deviation) { -// if (deviation < 1e-6f) return -100.0f; -// return 10*log10f((deviation*deviation)/SQRT19000); -// } +#define SQRT19000 180499999.99999997f // (19000 / sqrt(2)) * 19000 / sqrt(2) +inline float deviation_to_dbr(float deviation) { + if (deviation < 1e-6f) return -100.0f; + return 10*log10f((deviation*deviation)/SQRT19000); +} void init_bs412(BS412Compressor* comp, uint32_t mpx_deviation, float target_power, float attack, float release, float max_gain, uint32_t sample_rate) { comp->mpx_deviation = mpx_deviation;