mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-08-21 14:36:21 +02:00
Reduce the CPU load slightly.
This commit is contained in:
@@ -81,17 +81,15 @@ void CFM::samples(bool cos, q15_t* samples, uint8_t length)
|
||||
stateMachine(validCTCSS && cos, i + 1U);
|
||||
}
|
||||
|
||||
currentSample = m_deemphasis.filter(currentSample);
|
||||
|
||||
// Only let audio through when relaying audio
|
||||
if (m_state == FS_RELAYING || m_state == FS_KERCHUNK) {
|
||||
currentSample = m_deemphasis.filter(currentSample);
|
||||
m_downsampler.addSample(currentSample);
|
||||
currentSample = m_blanking.process(currentSample);
|
||||
}
|
||||
else
|
||||
currentSample *= m_rfAudioBoost;
|
||||
} else {
|
||||
currentSample = 0U;
|
||||
|
||||
currentSample *= m_rfAudioBoost;
|
||||
}
|
||||
|
||||
if (!m_callsign.isRunning())
|
||||
currentSample += m_rfAck.getHighAudio();
|
||||
|
||||
Reference in New Issue
Block a user