GetAudio do not take any arguments

This commit is contained in:
Geoffrey Merck 2020-04-21 22:00:11 +02:00
parent 9170c398be
commit 1c599138ad
7 changed files with 22 additions and 18 deletions

View file

@ -152,15 +152,15 @@ void CFMKeyer::getAudio(q15_t* samples, uint8_t length)
}
}
q15_t CFMKeyer::getAudio(q15_t sample)
q15_t CFMKeyer::getAudio()
{
q15_t output = 0U;
if (!m_wanted)
return 0U; //TODO F4FXL, not sure what to do here
q15_t output;
return 0U;
bool b = READ_BIT(m_poBuffer, m_poPos);
if (b)
output = sample + m_audio[m_audioPos];
output = m_audio[m_audioPos];
m_audioPos++;
if (m_audioPos >= m_audioLen)
@ -171,7 +171,7 @@ q15_t CFMKeyer::getAudio(q15_t sample)
m_poPos++;
if (m_poPos >= m_poLen) {
stop();
return sample;
return output;
}
}