diff options
author | andreas128 <Andreas> | 2017-09-28 14:30:27 +0200 |
---|---|---|
committer | andreas128 <Andreas> | 2017-09-28 14:30:27 +0200 |
commit | bb8c1b01a3b18eaace87cb959ab4181b76626655 (patch) | |
tree | f409c1db26f62b18e9ccf6555cdbd277d3efe301 /src/ConfigParser.cpp | |
parent | a5f44b01bebf02caf8b294be16633ce35e26845f (diff) | |
parent | 7593596f6b21483d5af0a55715065fa2b44c1019 (diff) | |
download | dabmod-bb8c1b01a3b18eaace87cb959ab4181b76626655.tar.gz dabmod-bb8c1b01a3b18eaace87cb959ab4181b76626655.tar.bz2 dabmod-bb8c1b01a3b18eaace87cb959ab4181b76626655.zip |
Merge branch 'next' of github.com:Opendigitalradio/ODR-DabMod into next
Diffstat (limited to 'src/ConfigParser.cpp')
-rw-r--r-- | src/ConfigParser.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ConfigParser.cpp b/src/ConfigParser.cpp index 9ac1280..1cc94c0 100644 --- a/src/ConfigParser.cpp +++ b/src/ConfigParser.cpp @@ -177,6 +177,13 @@ static void parse_configfile( pt.get<int>("poly.num_threads", 0); } + // Crest factor reduction + if (pt.get("cfr.enabled", 0) == 1) { + mod_settings.enableCfr = true; + mod_settings.cfrClip = pt.get<float>("cfr.clip"); + mod_settings.cfrErrorClip = pt.get<float>("cfr.error_clip"); + } + // Output options std::string output_selected; try { |