mirror of https://github.com/g4klx/MMDVM.git
Move downsampling tap point
This commit is contained in:
parent
cf18f95a92
commit
4b267c2e1e
8
FM.cpp
8
FM.cpp
|
@ -80,8 +80,10 @@ void CFM::samples(bool cos, q15_t* samples, uint8_t length)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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) {
|
||||||
|
m_downsampler.addSample(currentSample);
|
||||||
currentSample = m_blanking.process(currentSample);
|
currentSample = m_blanking.process(currentSample);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
currentSample = 0U;
|
currentSample = 0U;
|
||||||
|
|
||||||
|
@ -100,9 +102,7 @@ void CFM::samples(bool cos, q15_t* samples, uint8_t length)
|
||||||
if (!m_callsign.isRunning() && !m_rfAck.isRunning())
|
if (!m_callsign.isRunning() && !m_rfAck.isRunning())
|
||||||
currentSample += m_timeoutTone.getAudio();
|
currentSample += m_timeoutTone.getAudio();
|
||||||
|
|
||||||
currentSample = q15_t(m_filterStage3.filter(m_filterStage2.filter(m_filterStage1.filter(currentSample))));
|
currentSample = m_filterStage3.filter(m_filterStage2.filter(m_filterStage1.filter(currentSample)));
|
||||||
|
|
||||||
m_downsampler.addSample(currentSample);
|
|
||||||
|
|
||||||
currentSample += m_ctcssTX.getAudio();
|
currentSample += m_ctcssTX.getAudio();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue