mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-08-26 13:26:24 -04:00
GLSpectrum: set default window to Hanning
This commit is contained in:
@@ -13,7 +13,7 @@ GLSpectrumGUI::GLSpectrumGUI(QWidget* parent) :
|
||||
m_glSpectrum(0),
|
||||
m_fftSize(1024),
|
||||
m_fftOverlap(0),
|
||||
m_fftWindow(FFTWindow::Hamming),
|
||||
m_fftWindow(FFTWindow::Hanning),
|
||||
m_refLevel(0),
|
||||
m_powerRange(100),
|
||||
m_decay(1),
|
||||
@@ -63,7 +63,7 @@ void GLSpectrumGUI::resetToDefaults()
|
||||
{
|
||||
m_fftSize = 1024;
|
||||
m_fftOverlap = 0;
|
||||
m_fftWindow = FFTWindow::Hamming;
|
||||
m_fftWindow = FFTWindow::Hanning;
|
||||
m_refLevel = 0;
|
||||
m_powerRange = 100;
|
||||
m_decay = 1;
|
||||
@@ -126,7 +126,7 @@ bool GLSpectrumGUI::deserialize(const QByteArray& data)
|
||||
{
|
||||
d.readS32(1, &m_fftSize, 1024);
|
||||
d.readS32(2, &m_fftOverlap, 0);
|
||||
d.readS32(3, &m_fftWindow, FFTWindow::Hamming);
|
||||
d.readS32(3, &m_fftWindow, FFTWindow::Hanning);
|
||||
d.readReal(4, &m_refLevel, 0);
|
||||
d.readReal(5, &m_powerRange, 100);
|
||||
d.readBool(6, &m_displayWaterfall, true);
|
||||
|
||||
Reference in New Issue
Block a user