mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-10-22 18:45:01 +02:00
Allow for two levels of the callsign.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user