diff --git a/plugins/samplesource/sdrdaemonfec/sdrdaemonfecbuffer.cpp b/plugins/samplesource/sdrdaemonfec/sdrdaemonfecbuffer.cpp index ee955d7e9..d6bc35810 100644 --- a/plugins/samplesource/sdrdaemonfec/sdrdaemonfecbuffer.cpp +++ b/plugins/samplesource/sdrdaemonfec/sdrdaemonfecbuffer.cpp @@ -24,8 +24,6 @@ const int SDRdaemonFECBuffer::m_sampleSize = 2; const int SDRdaemonFECBuffer::m_iqSampleSize = 2 * m_sampleSize; -const int SDRdaemonFECBuffer::m_rawBufferLengthSeconds = 8; // should be even -const int SDRdaemonFECBuffer::m_rawBufferMinNbFrames = 50; SDRdaemonFECBuffer::SDRdaemonFECBuffer(uint32_t throttlems) : m_frameHead(0), @@ -40,7 +38,7 @@ SDRdaemonFECBuffer::SDRdaemonFECBuffer(uint32_t throttlems) : { m_currentMeta.init(); m_outputMeta.init(); - m_framesNbBytes = nbDecoderSlots * sizeof(BufferFrame) * m_iqSampleSize; + m_framesNbBytes = nbDecoderSlots * sizeof(BufferFrame); m_wrDeltaEstimate = m_framesNbBytes / 2; } diff --git a/plugins/samplesource/sdrdaemonfec/sdrdaemonfecbuffer.h b/plugins/samplesource/sdrdaemonfec/sdrdaemonfecbuffer.h index c6e7e0fa6..83cd332c2 100644 --- a/plugins/samplesource/sdrdaemonfec/sdrdaemonfecbuffer.h +++ b/plugins/samplesource/sdrdaemonfec/sdrdaemonfecbuffer.h @@ -25,7 +25,7 @@ #define SDRDAEMONFEC_UDPSIZE 512 // UDP payload size #define SDRDAEMONFEC_NBORIGINALBLOCKS 128 // number of sample blocks per frame excluding FEC blocks -#define SDRDAEMONFEC_NBDECODERSLOTS 4 // power of two sub multiple of uint16_t size. A too large one is superfluous. +#define SDRDAEMONFEC_NBDECODERSLOTS 16 // power of two sub multiple of uint16_t size. A too large one is superfluous. class SDRdaemonFECBuffer { @@ -142,8 +142,6 @@ public: static const int m_nbOriginalBlocks = SDRDAEMONFEC_NBORIGINALBLOCKS; static const int m_sampleSize; static const int m_iqSampleSize; - static const int m_rawBufferLengthSeconds; - static const int m_rawBufferMinNbFrames; //!< Minimum number of frames for the length of buffer private: static const int nbDecoderSlots = SDRDAEMONFEC_NBDECODERSLOTS;