Allow for two levels of the callsign.

This commit is contained in:
Jonathan Naylor
2020-04-22 22:10:34 +01:00
parent 526a53cd8c
commit f19009b132
9 changed files with 63 additions and 89 deletions
-23
View File
@@ -39,29 +39,6 @@ void CFMTimeout::setParams(uint8_t level)
m_level = q15_t(level * 128);
}
void CFMTimeout::getAudio(q15_t* samples, uint8_t length)
{
if (!m_running)
return;
for (uint8_t i = 0U; i < length; i++) {
if (m_pos > 12000U) {
q31_t sample = BUSY_AUDIO[m_n] * m_level;
samples[i] = q15_t(__SSAT((sample >> 15), 16));
m_n++;
if (m_n >= BUSY_AUDIO_LEN)
m_n = 0U;
} else {
samples[i] = 0;
}
m_pos++;
if (m_pos >= 24000U)
m_pos = 0U;
}
}
q15_t CFMTimeout::getAudio()
{
q15_t sample = 0U;