From b6e9577aaed919975f32ee1a5a9821668089f2db Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 7 Aug 2018 11:29:47 +0200 Subject: Keep RC-modified settings across modulator restarts --- src/OfdmGenerator.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/OfdmGenerator.h') 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; -- cgit v1.2.3