mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-07-29 20:22:26 -04:00
Channel analyzer: engage rational down sampler also when no channel decimation takes place. Fixes #1622
This commit is contained in:
parent
c9fd5b8468
commit
084fd7b0e9
@ -66,7 +66,20 @@ void ChannelAnalyzerSink::feed(const SampleVector::const_iterator& begin, const
|
|||||||
|
|
||||||
if (m_decimator.getDecim() == 1)
|
if (m_decimator.getDecim() == 1)
|
||||||
{
|
{
|
||||||
processOneSample(c, sideband);
|
if (m_settings.m_rationalDownSample)
|
||||||
|
{
|
||||||
|
Complex cj;
|
||||||
|
|
||||||
|
if (m_interpolator.decimate(&m_interpolatorDistanceRemain, c, &cj))
|
||||||
|
{
|
||||||
|
processOneSample(cj, sideband);
|
||||||
|
m_interpolatorDistanceRemain += m_interpolatorDistance;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
processOneSample(c, sideband);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -311,6 +324,9 @@ void ChannelAnalyzerSink::applySettings(const ChannelAnalyzerSettings& settings,
|
|||||||
|
|
||||||
m_settings = settings;
|
m_settings = settings;
|
||||||
|
|
||||||
|
qDebug() << "ChannelAnalyzerSink::applySettings:"
|
||||||
|
<< " m_rationalDownSample: " << settings.m_rationalDownSample;
|
||||||
|
|
||||||
if (doApplySampleRate) {
|
if (doApplySampleRate) {
|
||||||
applySampleRate();
|
applySampleRate();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user