mirror of https://github.com/g4klx/MMDVM.git
Rescale the output.
This commit is contained in:
parent
30031d8e95
commit
172ac615a8
|
@ -95,7 +95,7 @@ void CCalFM::process()
|
||||||
|
|
||||||
q31_t arg = 0;
|
q31_t arg = 0;
|
||||||
for (uint16_t i = 0U; i < m_length; i++) {
|
for (uint16_t i = 0U; i < m_length; i++) {
|
||||||
q63_t value = ::arm_sin_q31(arg) * q63_t(m_level * 128);
|
q63_t value = ::arm_sin_q31(arg) * q63_t(m_level);
|
||||||
m_tone[i] = q15_t(__SSAT((value >> 31), 16));
|
m_tone[i] = q15_t(__SSAT((value >> 31), 16));
|
||||||
|
|
||||||
arg += entry->increment;
|
arg += entry->increment;
|
||||||
|
|
Loading…
Reference in New Issue