summaryrefslogtreecommitdiffstats
path: root/src/ConfigParser.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-08-21 18:14:55 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-09-28 13:36:48 +0200
commit571d57c591b23d212934f0bb969c33d15c729982 (patch)
treec5d39bea968b052de46d187ffc0cffab91084aa4 /src/ConfigParser.cpp
parent75653763057bb9bf018dfde1a3cda8681c8b8e34 (diff)
downloaddabmod-571d57c591b23d212934f0bb969c33d15c729982.tar.gz
dabmod-571d57c591b23d212934f0bb969c33d15c729982.tar.bz2
dabmod-571d57c591b23d212934f0bb969c33d15c729982.zip
Fix some CFR things, still WIP
Diffstat (limited to 'src/ConfigParser.cpp')
-rw-r--r--src/ConfigParser.cpp7
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 {