mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-16 13:21:50 -05:00
Initialize m_audioSampleRate in constructors where missing. Fixes #554
This commit is contained in:
parent
552ccede77
commit
563c509c7c
@ -28,6 +28,7 @@
|
|||||||
|
|
||||||
AMDemodSink::AMDemodSink() :
|
AMDemodSink::AMDemodSink() :
|
||||||
m_channelSampleRate(48000),
|
m_channelSampleRate(48000),
|
||||||
|
m_audioSampleRate(48000),
|
||||||
m_channelFrequencyOffset(0),
|
m_channelFrequencyOffset(0),
|
||||||
m_squelchCount(0),
|
m_squelchCount(0),
|
||||||
m_squelchOpen(false),
|
m_squelchOpen(false),
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
|
|
||||||
DSDDemodSink::DSDDemodSink() :
|
DSDDemodSink::DSDDemodSink() :
|
||||||
m_channelSampleRate(48000),
|
m_channelSampleRate(48000),
|
||||||
|
m_audioSampleRate(48000),
|
||||||
m_channelFrequencyOffset(0),
|
m_channelFrequencyOffset(0),
|
||||||
m_interpolatorDistance(0.0f),
|
m_interpolatorDistance(0.0f),
|
||||||
m_interpolatorDistanceRemain(0.0f),
|
m_interpolatorDistanceRemain(0.0f),
|
||||||
|
@ -134,6 +134,7 @@ FreeDVDemodSink::FreeDVDemodSink() :
|
|||||||
m_channelSampleRate(48000),
|
m_channelSampleRate(48000),
|
||||||
m_modemSampleRate(48000),
|
m_modemSampleRate(48000),
|
||||||
m_speechSampleRate(8000), // fixed 8 kS/s
|
m_speechSampleRate(8000), // fixed 8 kS/s
|
||||||
|
m_audioSampleRate(48000),
|
||||||
m_channelFrequencyOffset(0),
|
m_channelFrequencyOffset(0),
|
||||||
m_audioMute(false),
|
m_audioMute(false),
|
||||||
m_simpleAGC(0.003f, 0.0f, 1e-6f),
|
m_simpleAGC(0.003f, 0.0f, 1e-6f),
|
||||||
|
@ -47,7 +47,8 @@ SSBDemodSink::SSBDemodSink() :
|
|||||||
m_squelchDelayLine(2*48000),
|
m_squelchDelayLine(2*48000),
|
||||||
m_audioActive(false),
|
m_audioActive(false),
|
||||||
m_spectrumSink(nullptr),
|
m_spectrumSink(nullptr),
|
||||||
m_audioFifo(24000)
|
m_audioFifo(24000),
|
||||||
|
m_audioSampleRate(48000)
|
||||||
{
|
{
|
||||||
m_Bandwidth = 5000;
|
m_Bandwidth = 5000;
|
||||||
m_LowCutoff = 300;
|
m_LowCutoff = 300;
|
||||||
|
@ -33,6 +33,7 @@ const unsigned int WFMDemodSink::m_rfFilterFftLength = 1024;
|
|||||||
|
|
||||||
WFMDemodSink::WFMDemodSink() :
|
WFMDemodSink::WFMDemodSink() :
|
||||||
m_channelSampleRate(384000),
|
m_channelSampleRate(384000),
|
||||||
|
m_audioSampleRate(48000),
|
||||||
m_channelFrequencyOffset(0),
|
m_channelFrequencyOffset(0),
|
||||||
m_squelchOpen(false),
|
m_squelchOpen(false),
|
||||||
m_magsq(0.0f),
|
m_magsq(0.0f),
|
||||||
|
@ -29,6 +29,7 @@ FreeDVModSource::FreeDVModSource() :
|
|||||||
m_channelSampleRate(48000),
|
m_channelSampleRate(48000),
|
||||||
m_channelFrequencyOffset(0),
|
m_channelFrequencyOffset(0),
|
||||||
m_modemSampleRate(48000), // // default 2400A mode
|
m_modemSampleRate(48000), // // default 2400A mode
|
||||||
|
m_audioSampleRate(48000),
|
||||||
m_lowCutoff(0.0),
|
m_lowCutoff(0.0),
|
||||||
m_hiCutoff(6000.0),
|
m_hiCutoff(6000.0),
|
||||||
m_SSBFilter(nullptr),
|
m_SSBFilter(nullptr),
|
||||||
|
Loading…
Reference in New Issue
Block a user