diff options
author | Matthias P. Braendli (think) <matthias@mpb.li> | 2013-04-29 21:27:35 +0200 |
---|---|---|
committer | Matthias P. Braendli (think) <matthias@mpb.li> | 2013-04-29 21:27:35 +0200 |
commit | ba2abbb338010cae405eba568fd0d85732b0634e (patch) | |
tree | 04b941795fdcaa2cbb0600fb2f405c96f5d3745b | |
parent | f6706724e417c324ee8746c09ddfc0ecd98cca2f (diff) | |
download | dabmod-ba2abbb338010cae405eba568fd0d85732b0634e.tar.gz dabmod-ba2abbb338010cae405eba568fd0d85732b0634e.tar.bz2 dabmod-ba2abbb338010cae405eba568fd0d85732b0634e.zip |
dabmod: additional mutenotimestamp config entry
-rw-r--r-- | doc/example.ini | 3 | ||||
-rw-r--r-- | src/DabMod.cpp | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/doc/example.ini b/doc/example.ini index 2e58958..f76b7ad 100644 --- a/doc/example.ini +++ b/doc/example.ini @@ -60,6 +60,9 @@ behaviour_refclk_lock_lost=ignore [delaymanagement] synchronous=0 +; whether to mute the TX when incoming frames have no timestamp +mutenotimestamps=0 + ; choose between fixed and dynamic offset definition management=dynamic diff --git a/src/DabMod.cpp b/src/DabMod.cpp index 127d72f..a5546a2 100644 --- a/src/DabMod.cpp +++ b/src/DabMod.cpp @@ -460,13 +460,12 @@ int main(int argc, char* argv[]) goto END_MAIN; } } + + outputuhd_conf.muteNoTimestamps = (pt.get("delaymanagement.mutenotimestamps", 0) == 1); } logger.level(info) << "starting up"; - // When using offset, enable frame muting - outputuhd_conf.muteNoTimestamps = (modconf.use_offset_file || modconf.use_offset_fixed); - if (!(modconf.use_offset_file || modconf.use_offset_fixed)) { fprintf(stderr, "No Modulator offset defined, setting to 0\n"); logger.level(debug) << "No Modulator offset defined, setting to 0"; |