mirror of https://github.com/g4klx/MMDVM.git
Reduce the CPU load slightly.
This commit is contained in:
parent
1465d6f91d
commit
200199c5d4
10
FM.cpp
10
FM.cpp
|
@ -81,17 +81,15 @@ void CFM::samples(bool cos, q15_t* samples, uint8_t length)
|
||||||
stateMachine(validCTCSS && cos, i + 1U);
|
stateMachine(validCTCSS && cos, i + 1U);
|
||||||
}
|
}
|
||||||
|
|
||||||
currentSample = m_deemphasis.filter(currentSample);
|
|
||||||
|
|
||||||
// Only let audio through when relaying audio
|
// Only let audio through when relaying audio
|
||||||
if (m_state == FS_RELAYING || m_state == FS_KERCHUNK) {
|
if (m_state == FS_RELAYING || m_state == FS_KERCHUNK) {
|
||||||
|
currentSample = m_deemphasis.filter(currentSample);
|
||||||
m_downsampler.addSample(currentSample);
|
m_downsampler.addSample(currentSample);
|
||||||
currentSample = m_blanking.process(currentSample);
|
currentSample = m_blanking.process(currentSample);
|
||||||
}
|
|
||||||
else
|
|
||||||
currentSample = 0U;
|
|
||||||
|
|
||||||
currentSample *= m_rfAudioBoost;
|
currentSample *= m_rfAudioBoost;
|
||||||
|
} else {
|
||||||
|
currentSample = 0U;
|
||||||
|
}
|
||||||
|
|
||||||
if (!m_callsign.isRunning())
|
if (!m_callsign.isRunning())
|
||||||
currentSample += m_rfAck.getHighAudio();
|
currentSample += m_rfAck.getHighAudio();
|
||||||
|
|
Loading…
Reference in New Issue