summaryrefslogtreecommitdiffstats
path: root/src/OutputUHD.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli (think) <matthias@mpb.li>2012-08-14 15:26:46 +0200
committerMatthias P. Braendli (think) <matthias@mpb.li>2012-08-14 15:26:46 +0200
commit2f0f16c55f7178cb8554b9cef708dbc00a3beac7 (patch)
tree846392b3646d74368523ffc17d84ee5d3831753b /src/OutputUHD.cpp
parent3990ad27e33f974c0a577e5a5556e113bd60f5bd (diff)
downloaddabmod-2f0f16c55f7178cb8554b9cef708dbc00a3beac7.tar.gz
dabmod-2f0f16c55f7178cb8554b9cef708dbc00a3beac7.tar.bz2
dabmod-2f0f16c55f7178cb8554b9cef708dbc00a3beac7.zip
crc-dabmod: const-correctness corrections necessary for
ini parser
Diffstat (limited to 'src/OutputUHD.cpp')
-rw-r--r--src/OutputUHD.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/OutputUHD.cpp b/src/OutputUHD.cpp
index c8f4ea9..3fb23d5 100644
--- a/src/OutputUHD.cpp
+++ b/src/OutputUHD.cpp
@@ -37,7 +37,7 @@
typedef std::complex<float> complexf;
-OutputUHD::OutputUHD(char* device, unsigned sampleRate,
+OutputUHD::OutputUHD(const char* device, unsigned sampleRate,
double frequency, int txgain, bool enableSync, bool muteNoTimestamps) :
ModOutput(ModFormat(1), ModFormat(0)),
mySampleRate(sampleRate),
@@ -203,7 +203,7 @@ int OutputUHD::process(Buffer* dataIn, Buffer* dataOut)
// the worker sends the other.
myEtiReader->calculateTimestamp(ts);
- uwd.sourceContainsTimestamp = myEtiReader->sourceContainsTimestamp();
+ uwd.sourceContainsTimestamp = enable_sync && myEtiReader->sourceContainsTimestamp();
if (activebuffer == 0) {
memcpy(uwd.frame0.buf, dataIn->getData(), uwd.bufsize);