From e1c6d3a90a23521bf2ffbcc937c9a25e4ca52bfb Mon Sep 17 00:00:00 2001 From: Manuel Pitz Date: Tue, 16 Feb 2021 10:08:05 +0100 Subject: [PATCH] adapt code style --- lib/hooks/dft.cpp | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/lib/hooks/dft.cpp b/lib/hooks/dft.cpp index eb73acda4..25986e0ab 100644 --- a/lib/hooks/dft.cpp +++ b/lib/hooks/dft.cpp @@ -140,7 +140,7 @@ public: { signal_list_clear(&signals); - /*init sample memory*/ + /* init sample memory */ smp_memory = new double*[signalCnt]; for (uint i = 0; i < signalCnt; i++) { @@ -175,7 +175,7 @@ public: freq_count = ceil((end_freqency - start_freqency) / frequency_resolution) + 1; - /*init matrix of dft coeffients*/ + /* init matrix of dft coeffients */ dftMatrix = new std::complex*[freq_count]; if (!dftMatrix) throw MemoryAllocationError(); @@ -202,18 +202,6 @@ public: state = State::PREPARED; } - virtual void start() - { - assert(state == State::PREPARED || state == State::STOPPED); - state = State::STARTED; - } - - virtual void stop() - { - assert(state == State::STARTED); - state = State::STOPPED; - } - virtual void parse(json_t *cfg) { const char *padding_type_c = nullptr, *window_type_c = nullptr; @@ -405,7 +393,7 @@ public: else dftResults[i] += 0; } - else if (padding == paddingType::SIG_REPEAT) //repeate samples + else if (padding == paddingType::SIG_REPEAT) //repeat samples dftResults[i] += tmp_smp_window[j % window_size] * dftMatrix[i][j]; }