mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-07 00:14:49 -04:00
Spectrum overlap: basic implementation
This commit is contained in:
@@ -734,8 +734,8 @@ void SpectrumVis::applySettings(const GLSpectrumSettings& settings, bool force)
|
||||
if ((fftSize != m_settings.m_fftSize)
|
||||
|| (settings.m_fftOverlap != m_settings.m_fftOverlap) || force)
|
||||
{
|
||||
m_overlapSize = settings.m_fftOverlap >= fftSize ? fftSize - 1 :
|
||||
settings.m_fftOverlap < 0 ? 0 : settings.m_fftOverlap;
|
||||
m_overlapSize = settings.m_fftOverlap < 0 ? 0 :
|
||||
settings.m_fftOverlap < fftSize/2 ? settings.m_fftOverlap : (fftSize/2) - 1;
|
||||
m_refillSize = fftSize - m_overlapSize;
|
||||
m_fftBufferFill = m_overlapSize;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user