mirror of
https://github.com/radio95-rnt/fm95.git
synced 2026-02-27 03:23:54 +01:00
fix bs412
This commit is contained in:
@@ -542,7 +542,8 @@ int main(int argc, char **argv) {
|
||||
if(sca_on) mpx += modulate_fm(&sca_mod, hard_clip(current_sca_in, sca_clipper_threshold))*SCA_VOLUME;
|
||||
|
||||
float mpx_only = measure_mpx(&mpx_only_power, mpx * mpx_deviation);
|
||||
float mpower = measure_mpx(&power, (audio+mpx) * mpx_deviation) - mpx_only;
|
||||
float mpower = measure_mpx(&power, (audio+mpx) * mpx_deviation);
|
||||
mpower = deviation_to_dbr(dbr_to_deviation(mpower) - dbr_to_deviation(mpx_only));
|
||||
if (mpower > mpx_power) {
|
||||
float excess_power = mpower - mpx_power;
|
||||
audio *= (dbr_to_deviation(-excess_power)/mpx_deviation);
|
||||
|
||||
Reference in New Issue
Block a user