diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-08-07 11:29:47 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-08-07 11:29:47 +0200 |
commit | b6e9577aaed919975f32ee1a5a9821668089f2db (patch) | |
tree | 18d3c0ebdc5db92a7caa5931c8171787932f333c /src/OfdmGenerator.h | |
parent | e68fa7c6cb9a718ec16cf849e5885e1ca9b3cf3d (diff) | |
download | dabmod-b6e9577aaed919975f32ee1a5a9821668089f2db.tar.gz dabmod-b6e9577aaed919975f32ee1a5a9821668089f2db.tar.bz2 dabmod-b6e9577aaed919975f32ee1a5a9821668089f2db.zip |
Keep RC-modified settings across modulator restarts
Diffstat (limited to 'src/OfdmGenerator.h')
-rw-r--r-- | src/OfdmGenerator.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/OfdmGenerator.h b/src/OfdmGenerator.h index cccccf5..30fdff4 100644 --- a/src/OfdmGenerator.h +++ b/src/OfdmGenerator.h @@ -47,9 +47,9 @@ class OfdmGenerator : public ModCodec, public RemoteControllable OfdmGenerator(size_t nbSymbols, size_t nbCarriers, size_t spacing, - bool enableCfr, - float cfrClip, - float cfrErrorClip, + bool& enableCfr, + float& cfrClip, + float& cfrErrorClip, bool inverse = true); virtual ~OfdmGenerator(); OfdmGenerator(const OfdmGenerator&) = delete; @@ -91,10 +91,10 @@ class OfdmGenerator : public ModCodec, public RemoteControllable unsigned myZeroDst; unsigned myZeroSize; - bool myCfr; // Whether to enable crest factor reduction + bool& myCfr; // Whether to enable crest factor reduction mutable std::mutex myCfrRcMutex; - float myCfrClip; - float myCfrErrorClip; + float& myCfrClip; + float& myCfrErrorClip; fftwf_plan myCfrFft; fftwf_complex *myCfrPostClip; fftwf_complex *myCfrPostFft; |