mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-10-15 16:24:11 +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);
|
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);
|
||||||
}
|
currentSample *= m_rfAudioBoost;
|
||||||
else
|
} else {
|
||||||
currentSample = 0U;
|
currentSample = 0U;
|
||||||
|
}
|
||||||
currentSample *= m_rfAudioBoost;
|
|
||||||
|
|
||||||
if (!m_callsign.isRunning())
|
if (!m_callsign.isRunning())
|
||||||
currentSample += m_rfAck.getHighAudio();
|
currentSample += m_rfAck.getHighAudio();
|
||||||
|
|||||||
Reference in New Issue
Block a user