1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 17:58:43 -05:00

AM demod: removed useless local samples buffer

This commit is contained in:
f4exb 2016-10-23 20:02:39 +02:00
parent 4e446b9c7a
commit f87b714ac7
3 changed files with 0 additions and 8 deletions

View File

@ -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();
}

View File

@ -131,7 +131,6 @@ private:
uint m_audioBufferFill;
AudioFifo m_audioFifo;
SampleVector m_sampleBuffer;
QMutex m_settingsMutex;
void apply();

View File

@ -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);