mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-18 22:31:48 -05:00
SDRdaemon: channel sink: activate sender thread
This commit is contained in:
parent
84178789e4
commit
5bb3022c22
@ -189,15 +189,29 @@ void SDRDaemonChannelSink::feed(const SampleVector::const_iterator& begin, const
|
|||||||
void SDRDaemonChannelSink::start()
|
void SDRDaemonChannelSink::start()
|
||||||
{
|
{
|
||||||
qDebug("SDRDaemonChannelSink::start");
|
qDebug("SDRDaemonChannelSink::start");
|
||||||
|
|
||||||
memset((void *) &m_currentMetaFEC, 0, sizeof(SDRDaemonMetaDataFEC));
|
memset((void *) &m_currentMetaFEC, 0, sizeof(SDRDaemonMetaDataFEC));
|
||||||
if (m_running) { stop(); }
|
|
||||||
|
if (m_running) {
|
||||||
|
stop();
|
||||||
|
}
|
||||||
|
|
||||||
m_sinkThread = new SDRDaemonChannelSinkThread(&m_dataQueue, m_cm256p);
|
m_sinkThread = new SDRDaemonChannelSinkThread(&m_dataQueue, m_cm256p);
|
||||||
|
m_sinkThread->startWork();
|
||||||
m_running = true;
|
m_running = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SDRDaemonChannelSink::stop()
|
void SDRDaemonChannelSink::stop()
|
||||||
{
|
{
|
||||||
qDebug("SDRDaemonChannelSink::stop");
|
qDebug("SDRDaemonChannelSink::stop");
|
||||||
|
|
||||||
|
if (m_sinkThread != 0)
|
||||||
|
{
|
||||||
|
m_sinkThread->stopWork();
|
||||||
|
delete m_sinkThread;
|
||||||
|
m_sinkThread = 0;
|
||||||
|
}
|
||||||
|
|
||||||
m_running = false;
|
m_running = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user