summaryrefslogtreecommitdiffstats
path: root/src/OutputUHD.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-02-12 10:21:01 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-02-12 10:21:01 +0100
commita84687a3e0776f47deec0ddb7b8f2a47eb0ea877 (patch)
treea84b5657ab8a0334de6366b50cf96bc857f2e20c /src/OutputUHD.h
parent1f7576701b54bf83d600780483017457841e830b (diff)
parent277d29a529c37a8fe59883291e43db8ff8831b22 (diff)
downloaddabmod-a84687a3e0776f47deec0ddb7b8f2a47eb0ea877.tar.gz
dabmod-a84687a3e0776f47deec0ddb7b8f2a47eb0ea877.tar.bz2
dabmod-a84687a3e0776f47deec0ddb7b8f2a47eb0ea877.zip
Merge raspine/master, with ZMQ Remote-Control code
This adds zmq rc fixes and an example tool to interface to it
Diffstat (limited to 'src/OutputUHD.h')
-rw-r--r--src/OutputUHD.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/OutputUHD.h b/src/OutputUHD.h
index 7eb6733..c5d561b 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,13 @@ class OutputUHD: public ModOutput, public RemoteControllable {
bool myMuting;
private:
+ // Resize the internal delay buffer according to the dabMode and
+ // the sample rate.
+ 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;
};