mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-22 16:08:39 -05:00
AM demod: removed useless local samples buffer
This commit is contained in:
parent
4e446b9c7a
commit
f87b714ac7
@ -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();
|
||||
}
|
||||
|
||||
|
@ -131,7 +131,6 @@ private:
|
||||
uint m_audioBufferFill;
|
||||
|
||||
AudioFifo m_audioFifo;
|
||||
SampleVector m_sampleBuffer;
|
||||
QMutex m_settingsMutex;
|
||||
|
||||
void apply();
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user