1
0
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:
f4exb
2021-02-09 07:12:32 +01:00
parent 59d0ea671b
commit 7d33899770
4 changed files with 490 additions and 410 deletions
+2 -2
View File
@@ -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;
}