mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-03-22 12:18:32 -04:00
WFM modulator: do not go below 96 kHz for the channelizer sample rate. Attempt to fix CW problem
This commit is contained in:
parent
20e08741ca
commit
4b89ac3360
@ -82,6 +82,7 @@ WFMMod::WFMMod() :
|
||||
m_cwSmoother.setNbFadeSamples(m_config.m_outputSampleRate / 250); // 4 ms
|
||||
m_cwKeyer.setWPM(13);
|
||||
m_cwKeyer.setMode(CWKeyer::CWNone);
|
||||
m_cwKeyer.reset();
|
||||
}
|
||||
|
||||
WFMMod::~WFMMod()
|
||||
@ -426,6 +427,7 @@ void WFMMod::apply()
|
||||
{
|
||||
m_cwKeyer.setSampleRate(m_config.m_outputSampleRate);
|
||||
m_cwSmoother.setNbFadeSamples(m_config.m_outputSampleRate / 250); // 4 ms
|
||||
m_cwKeyer.reset();
|
||||
}
|
||||
|
||||
m_running.m_outputSampleRate = m_config.m_outputSampleRate;
|
||||
|
@ -42,9 +42,7 @@ const int WFMModGUI::m_nbRfBW = 14;
|
||||
|
||||
int WFMModGUI::requiredBW(int rfBW)
|
||||
{
|
||||
if (rfBW <= 48000)
|
||||
return 48000;
|
||||
else if (rfBW < 100000)
|
||||
if (rfBW < 96000)
|
||||
return 96000;
|
||||
else
|
||||
return 384000;
|
||||
|
@ -66,6 +66,7 @@ public:
|
||||
void setText(const QString& text);
|
||||
void setMode(CWMode mode);
|
||||
void setLoop(bool loop) { m_loop = loop; }
|
||||
void reset() { m_keyIambicState = KeySilent; }
|
||||
|
||||
int getSample();
|
||||
bool eom();
|
||||
|
Loading…
Reference in New Issue
Block a user