diff options
author | Jörgen Scott <jorgen.scott@gmail.com> | 2015-02-04 12:19:55 +0100 |
---|---|---|
committer | Jörgen Scott <jorgen.scott@gmail.com> | 2015-02-04 12:19:55 +0100 |
commit | 1ab555f832c764bd10cebeeee51d9f7ad5c4b2c6 (patch) | |
tree | f0f9b28446ff35433223761c8239dae7706a85e4 /src/OutputUHD.h | |
parent | 7e9fa603ee00fa0ec8ebf6e258f94cadbb300856 (diff) | |
download | dabmod-1ab555f832c764bd10cebeeee51d9f7ad5c4b2c6.tar.gz dabmod-1ab555f832c764bd10cebeeee51d9f7ad5c4b2c6.tar.bz2 dabmod-1ab555f832c764bd10cebeeee51d9f7ad5c4b2c6.zip |
Removed magick numbers and added support for static delay in all dab modes
Diffstat (limited to 'src/OutputUHD.h')
-rw-r--r-- | src/OutputUHD.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/OutputUHD.h b/src/OutputUHD.h index 7eb6733..d002e98 100644 --- a/src/OutputUHD.h +++ b/src/OutputUHD.h @@ -171,6 +171,7 @@ struct OutputUHDConfig { double txgain; bool enableSync; bool muteNoTimestamps; + unsigned dabMode; /* allowed values : auto, int, sma, mimo */ std::string refclk_src; @@ -231,8 +232,12 @@ class OutputUHD: public ModOutput, public RemoteControllable { bool myMuting; private: + // methods + void SetDelayBuffer(unsigned int dabMode); + // data - int myStaticDelay; + int myStaticDelayUs; // static delay in microseconds + int myTFDurationMs; // TF duration in milliseconds std::vector<complexf> myDelayBuf; size_t lastLen; }; |