mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-05-07 13:37:48 +00:00
GetAudio do not take any arguments
This commit is contained in:
parent
9170c398be
commit
1c599138ad
7 changed files with 22 additions and 18 deletions
12
FMKeyer.cpp
12
FMKeyer.cpp
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue