mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-10-11 01:31:13 -04:00
fcdproplusthread: Initialize FCDProPlusThread sample buffer
Zero-initialize the FCDProPlusThread sample buffer to eliminate the cppcheck UNINIT_CTOR warning. This ensures the sample buffer starts in a defined state and avoids undefined behavior from reading uninitialized samples. Signed-off-by: Robin Getz <rgetz503@gmail.com>
This commit is contained in:
@@ -30,14 +30,15 @@
|
||||
#include "fcdproplusthread.h"
|
||||
|
||||
FCDProPlusThread::FCDProPlusThread(SampleSinkFifo* sampleFifo, AudioFifo *fcdFIFO, QObject* parent) :
|
||||
QThread(parent),
|
||||
m_fcdFIFO(fcdFIFO),
|
||||
m_running(false),
|
||||
m_log2Decim(0),
|
||||
m_fcPos(2),
|
||||
QThread(parent),
|
||||
m_fcdFIFO(fcdFIFO),
|
||||
m_running(false),
|
||||
m_log2Decim(0),
|
||||
m_fcPos(2),
|
||||
m_iqOrder(true),
|
||||
m_convertBuffer(fcd_traits<ProPlus>::convBufSize), // nb samples
|
||||
m_sampleFifo(sampleFifo)
|
||||
m_buf{},
|
||||
m_convertBuffer(fcd_traits<ProPlus>::convBufSize),
|
||||
m_sampleFifo(sampleFifo)
|
||||
{
|
||||
start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user