From 02c6e85a988149a2ee5d3f54e5120b664c5d6716 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 29 Dec 2017 07:00:19 +0100 Subject: Shorten TII name() printout --- src/TII.cpp | 12 +++--------- src/TII.h | 4 ---- 2 files changed, 3 insertions(+), 13 deletions(-) (limited to 'src') diff --git a/src/TII.cpp b/src/TII.cpp index 446d9c6..89cd6d0 100644 --- a/src/TII.cpp +++ b/src/TII.cpp @@ -160,20 +160,14 @@ TII::TII(unsigned int dabmode, const tii_config_t& tii_config, unsigned phase) : prepare_pattern(); } - -TII::~TII() -{ - PDEBUG("TII::~TII() @ %p\n", this); -} - const char* TII::name() { // Calculate name on demand because comb and pattern are // modifiable through RC std::stringstream ss; - ss << "TII(comb:" << m_conf.comb << - ", pattern:" << m_conf.pattern << - ", variant:" << (m_conf.old_variant ? "old" : "new") << ")"; + ss << "TII(c:" << m_conf.comb << + " p:" << m_conf.pattern << + " vrnt:" << (m_conf.old_variant ? "old" : "new") << ")"; m_name = ss.str(); return m_name.c_str(); diff --git a/src/TII.h b/src/TII.h index 4c5c605..b0ffdb3 100644 --- a/src/TII.h +++ b/src/TII.h @@ -84,9 +84,6 @@ class TII : public ModCodec, public RemoteControllable { public: TII(unsigned int dabmode, const tii_config_t& tii_config, unsigned phase); - virtual ~TII(); - TII(const TII&) = delete; - TII& operator=(const TII&) = delete; int process(Buffer* dataIn, Buffer* dataOut); const char* name(); @@ -128,4 +125,3 @@ class TII : public ModCodec, public RemoteControllable std::vector m_enabled_carriers; }; - -- cgit v1.2.3 From 8e3338479c180418a05ab030c60ba01c2a8615ca Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 29 Dec 2017 09:25:31 +0100 Subject: Fix complexf file output format --- src/DabMod.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/DabMod.cpp b/src/DabMod.cpp index b6f2dee..25a93bf 100644 --- a/src/DabMod.cpp +++ b/src/DabMod.cpp @@ -182,7 +182,7 @@ static shared_ptr prepare_output( if (s.fileOutputFormat == "complexf") { output = make_shared(s.outputName); } - if (s.fileOutputFormat == "complexf_normalised") { + else if (s.fileOutputFormat == "complexf_normalised") { if (s.gainMode == GainMode::GAIN_FIX) s.normalise = 1.0f / normalise_factor_file_fix; else if (s.gainMode == GainMode::GAIN_MAX) -- cgit v1.2.3