From 2f0f16c55f7178cb8554b9cef708dbc00a3beac7 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli (think)" Date: Tue, 14 Aug 2012 15:26:46 +0200 Subject: crc-dabmod: const-correctness corrections necessary for ini parser --- src/OutputUHD.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/OutputUHD.cpp') 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 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); -- cgit v1.2.3