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

FCDPro: use Qt for FCD audio device handling. Fixes in FCDProPlus

This commit is contained in:
f4exb
2018-11-20 01:48:17 +01:00
parent f04201a528
commit af9c693412
9 changed files with 200 additions and 162 deletions
@@ -17,11 +17,14 @@
#include <QDebug>
#include <stdio.h>
#include <errno.h>
#include "fcdproplusthread.h"
#include <chrono>
#include <thread>
#include "dsp/samplesinkfifo.h"
#include "audio/audiofifo.h"
#include "fcdproplusthread.h"
FCDProPlusThread::FCDProPlusThread(SampleSinkFifo* sampleFifo, AudioFifo *fcdFIFO, QObject* parent) :
QThread(parent),
m_fcdFIFO(fcdFIFO),
@@ -61,8 +64,10 @@ void FCDProPlusThread::run()
m_running = true;
qDebug("FCDThread::run: start running loop");
while (m_running) {
while (m_running)
{
work(fcd_traits<ProPlus>::convBufSize);
std::this_thread::sleep_for(std::chrono::microseconds(100));
}
qDebug("FCDThread::run: running loop stopped");