mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-10-22 18:45:01 +02:00
(almost) One loop to rule all the samples
Avoid looping over and over the samples. One
This commit is contained in:
@@ -125,3 +125,12 @@ void CFMCTCSSTX::getAudio(q15_t* samples, uint8_t length)
|
||||
m_n = 0U;
|
||||
}
|
||||
}
|
||||
|
||||
q15_t CFMCTCSSTX::getAudio(q15_t sample)
|
||||
{
|
||||
sample += m_values[m_n++];
|
||||
if(m_n >= m_length)
|
||||
m_n = 0U;
|
||||
|
||||
return sample;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user