From 07017aacd8317e0cc7db42ff71ce1ddb9bcbb2ad Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sun, 3 Aug 2025 16:13:54 +0200 Subject: [PATCH] show gain with dbr --- filter/bs412.c | 2 +- src/fm95.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/filter/bs412.c b/filter/bs412.c index 2c01d35..dee32cc 100644 --- a/filter/bs412.c +++ b/filter/bs412.c @@ -45,7 +45,7 @@ float bs412_compress(BS412Compressor* mpx, float sample) { #ifdef BS412_DEBUG if(mpx->average_counter % mpx->sample_rate == 0) { - debug_printf("MPX power: %.2f dBr (%.0f) with gain %.2fx\n", modulation_power, avg_deviation, mpx->gain); + debug_printf("MPX power: %.2f dBr (%.0f) with gain %.2fx (%.2f dBr)\n", modulation_power, avg_deviation, mpx->gain, deviation_to_dbr(avg_deviation * mpx->gain)); } #endif diff --git a/src/fm95.c b/src/fm95.c index 3a9a700..c2bf6c0 100644 --- a/src/fm95.c +++ b/src/fm95.c @@ -482,7 +482,7 @@ int main(int argc, char **argv) { .tilt = 0, // Off .calibration = 0, // Off .mpx_power = 3.0f, // dbr, this is for BS412, simplest bs412 - .mpx_deviation = 75000.0f, // for BS412 + .mpx_deviation = 75000.0f, // for BS412, this is what deviation does the compressor see as peak, so if i set here 150 khz, then the compressor will act as if it was two times louder .audio_deviation = 75000.0f, // another way to set the volume .master_volume = 1.0f, // Volume of everything combined, for calibration .audio_volume = 1.0f, // Volume of the audio, before stereo encoding, before clipper