Ensure we have at least 75ms of audio before transmitting

This commit is contained in:
Geoffrey Merck 2020-05-30 20:05:34 +02:00
parent 9137af8e3f
commit 72cd2ce03e
3 changed files with 59 additions and 49 deletions

View file

@ -27,7 +27,7 @@
class CFMUpSampler {
public:
CFMUpSampler(uint16_t length);
CFMUpSampler();
void reset();
@ -39,8 +39,10 @@ public:
private:
uint8_t m_upSampleIndex;
TSamplePairPack m_pack;
CRingBuffer<q15_t> m_samples;
uint32_t m_pack;
uint8_t * m_packPointer;
CRingBuffer<TSamplePairPack> m_samples;
bool m_running;
};
#endif