1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 13:47:01 -04:00

PlutoSDR input: added thread class

This commit is contained in:
f4exb
2017-09-06 06:15:38 +02:00
parent a9b2e76e15
commit e1c3a66983
5 changed files with 277 additions and 3 deletions
@@ -24,6 +24,8 @@
#include "plutosdrinput.h"
#define PLUTOSDR_BLOCKSIZE (1024*1024) //complex samples per buffer
MESSAGE_CLASS_DEFINITION(PlutoSDRInput::MsgFileRecord, Message)
PlutoSDRInput::PlutoSDRInput(DeviceSourceAPI *deviceAPI) :
@@ -166,7 +168,7 @@ bool PlutoSDRInput::openDevice()
// acquire the channel
DevicePlutoSDRBox *plutoBox = m_deviceShared.m_deviceParams->getBox();
plutoBox->openRx();
m_plutoRxBuffer = plutoBox->createRxBuffer(1024*1024, false);
m_plutoRxBuffer = plutoBox->createRxBuffer(PLUTOSDR_BLOCKSIZE, false);
return true;
}