mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-16 05:11:49 -05:00
28 lines
507 B
C++
28 lines
507 B
C++
#include "basebandsamplesink.h"
|
|
|
|
MESSAGE_CLASS_DEFINITION(BasebandSampleSink::MsgThreadedSink, Message)
|
|
|
|
BasebandSampleSink::BasebandSampleSink() :
|
|
m_guiMessageQueue(0)
|
|
{
|
|
connect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()));
|
|
}
|
|
|
|
BasebandSampleSink::~BasebandSampleSink()
|
|
{
|
|
}
|
|
|
|
void BasebandSampleSink::handleInputMessages()
|
|
{
|
|
Message* message;
|
|
|
|
while ((message = m_inputMessageQueue.pop()) != 0)
|
|
{
|
|
if (handleMessage(*message))
|
|
{
|
|
delete message;
|
|
}
|
|
}
|
|
}
|
|
|