mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-26 11:22:00 +01:00
show gain with dbr
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user