sdrangel/sdrbase/dsp/basebandsamplesink.cpp

28 wiersze
507 B
C++
Czysty Zwykły widok Historia

#include "basebandsamplesink.h"
MESSAGE_CLASS_DEFINITION(BasebandSampleSink::MsgThreadedSink, Message)
2017-09-27 21:47:29 +00:00
BasebandSampleSink::BasebandSampleSink() :
m_guiMessageQueue(0)
{
connect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()));
}
BasebandSampleSink::~BasebandSampleSink()
{
}
2015-08-17 06:29:34 +00:00
void BasebandSampleSink::handleInputMessages()
2015-08-17 06:29:34 +00:00
{
Message* message;
while ((message = m_inputMessageQueue.pop()) != 0)
2015-08-17 06:29:34 +00:00
{
if (handleMessage(*message))
{
delete message;
}
}
}