1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 17:58:43 -05:00

LimeSDR and BladeRF output: do not resize sample FIFO to a fixed value in the thread constructor

This commit is contained in:
f4exb 2017-10-15 17:37:53 +02:00
parent d47a89f133
commit a61348948a
4 changed files with 2 additions and 2 deletions

View File

@ -40,6 +40,7 @@ BladerfOutput::BladerfOutput(DeviceSinkAPI *deviceAPI) :
m_deviceDescription("BladeRFOutput"),
m_running(false)
{
m_sampleSourceFifo.resize(16*BLADERFOUTPUT_BLOCKSIZE);
openDevice();
m_deviceAPI->setBuddySharedPtr(&m_sharedParams);
}

View File

@ -28,7 +28,6 @@ BladerfOutputThread::BladerfOutputThread(struct bladerf* dev, SampleSourceFifo*
m_log2Interp(0),
m_fcPos(0)
{
m_sampleFifo->resize(16*BLADERFOUTPUT_BLOCKSIZE);
}
BladerfOutputThread::~BladerfOutputThread()

View File

@ -43,6 +43,7 @@ LimeSDROutput::LimeSDROutput(DeviceSinkAPI *deviceAPI) :
m_running(false),
m_channelAcquired(false)
{
m_sampleSourceFifo.resize(16*LIMESDROUTPUT_BLOCKSIZE);
m_streamId.handle = 0;
suspendRxBuddies();
suspendTxBuddies();

View File

@ -27,7 +27,6 @@ LimeSDROutputThread::LimeSDROutputThread(lms_stream_t* stream, SampleSourceFifo*
m_log2Interp(0),
m_fcPos(LimeSDROutputSettings::FC_POS_CENTER)
{
m_sampleFifo->resize(16*LIMESDROUTPUT_BLOCKSIZE);
}
LimeSDROutputThread::~LimeSDROutputThread()