Rescale the output.

This commit is contained in:
Jonathan Naylor 2020-04-27 14:59:33 +01:00
parent 30031d8e95
commit 172ac615a8
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ void CCalFM::process()
q31_t arg = 0;
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));
arg += entry->increment;