From f87b714ac787de2fc6b5db7f84630990c33d6c80 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sun, 23 Oct 2016 20:02:39 +0200 Subject: [PATCH] AM demod: removed useless local samples buffer --- plugins/channelrx/demodam/amdemod.cpp | 5 ----- plugins/channelrx/demodam/amdemod.h | 1 - plugins/samplesink/filesink/filesinkgui.cpp | 2 -- 3 files changed, 8 deletions(-) diff --git a/plugins/channelrx/demodam/amdemod.cpp b/plugins/channelrx/demodam/amdemod.cpp index a52f059fd..0cbced721 100644 --- a/plugins/channelrx/demodam/amdemod.cpp +++ b/plugins/channelrx/demodam/amdemod.cpp @@ -79,9 +79,6 @@ void AMDemod::feed(const SampleVector::const_iterator& begin, const SampleVector if (m_interpolator.decimate(&m_interpolatorDistanceRemain, c, &ci)) { - //m_sampleBuffer.push_back(Sample(ci.real() * 32767.0, ci.imag() * 32767.0)); - m_sampleBuffer.push_back(Sample(ci.real(), ci.imag())); - Real magsq = ci.real() * ci.real() + ci.imag() * ci.imag(); magsq /= (1<<30); m_movingAverage.feed(magsq); @@ -165,8 +162,6 @@ void AMDemod::feed(const SampleVector::const_iterator& begin, const SampleVector m_audioBufferFill = 0; } - m_sampleBuffer.clear(); - m_settingsMutex.unlock(); } diff --git a/plugins/channelrx/demodam/amdemod.h b/plugins/channelrx/demodam/amdemod.h index 6f9558fd8..ccc2cfc35 100644 --- a/plugins/channelrx/demodam/amdemod.h +++ b/plugins/channelrx/demodam/amdemod.h @@ -131,7 +131,6 @@ private: uint m_audioBufferFill; AudioFifo m_audioFifo; - SampleVector m_sampleBuffer; QMutex m_settingsMutex; void apply(); diff --git a/plugins/samplesink/filesink/filesinkgui.cpp b/plugins/samplesink/filesink/filesinkgui.cpp index 811cbb46a..5b5658229 100644 --- a/plugins/samplesink/filesink/filesinkgui.cpp +++ b/plugins/samplesink/filesink/filesinkgui.cpp @@ -311,8 +311,6 @@ void FileSinkGui::updateWithStreamTime() t_sec = m_samplesCount / m_settings.m_sampleRate; } - qDebug("FileSinkGui::updateWithStreamTime: m_samplesCount: %d", m_samplesCount); - QTime t(0, 0, 0, 0); t = t.addSecs(t_sec); t = t.addMSecs(t_msec);