From d5f65a7e390822eb5cbda9781afa0acdeef7a189 Mon Sep 17 00:00:00 2001 From: f4exb Date: Wed, 16 Mar 2016 05:51:22 +0100 Subject: [PATCH] SDRdaemon plugin: use a fixed time bound raw buffer of 8 seconds --- plugins/samplesource/sdrdaemon/sdrdaemonbuffer.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/samplesource/sdrdaemon/sdrdaemonbuffer.cpp b/plugins/samplesource/sdrdaemon/sdrdaemonbuffer.cpp index c9d4151c8..d64eed843 100644 --- a/plugins/samplesource/sdrdaemon/sdrdaemonbuffer.cpp +++ b/plugins/samplesource/sdrdaemon/sdrdaemonbuffer.cpp @@ -25,7 +25,7 @@ const int SDRdaemonBuffer::m_udpPayloadSize = 512; const int SDRdaemonBuffer::m_sampleSize = 2; const int SDRdaemonBuffer::m_iqSampleSize = 2 * m_sampleSize; -const int SDRdaemonBuffer::m_rawBufferLengthSeconds = 4; // should be even +const int SDRdaemonBuffer::m_rawBufferLengthSeconds = 8; // should be even SDRdaemonBuffer::SDRdaemonBuffer(uint32_t throttlems) : m_throttlemsNominal(throttlems), @@ -88,10 +88,6 @@ void SDRdaemonBuffer::updateBufferSize(uint32_t sampleRate) { uint32_t rawSize = sampleRate * m_iqSampleSize * m_rawBufferLengthSeconds; // store worth of this seconds of samples at this sample rate - if (rawSize < (1<<24)) { - rawSize = (1<<24); - } - if (rawSize != m_rawSize) { m_rawSize = rawSize;