1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -04:00

BladerRF2 input support (8). Streams but thread issue

This commit is contained in:
f4exb
2018-09-25 08:45:57 +02:00
parent b20feec1fd
commit 47a4da4142
5 changed files with 21 additions and 8 deletions
@@ -23,11 +23,18 @@ Bladerf2InputThread::Bladerf2InputThread(struct bladerf* dev, unsigned int nbRxC
m_nbChannels(nbRxChannels)
{
m_channels = new Channel[nbRxChannels];
for (unsigned int i = 0; i < nbRxChannels; i++) {
m_channels[i].m_convertBuffer.resize(DeviceBladeRF2::blockSize, Sample{0,0});
}
m_buf = new qint16[2*DeviceBladeRF2::blockSize*nbRxChannels];
}
Bladerf2InputThread::~Bladerf2InputThread()
{
qDebug("Bladerf2InputThread::~Bladerf2InputThread");
if (m_running) {
stopWork();
}