1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-23 16:38:37 -05:00
sdrangel/sdrbase/dsp/basebandsamplesink.cpp

27 lines
465 B
C++
Raw Normal View History

#include <dsp/basebandsamplesink.h>
2015-08-17 02:29:34 -04:00
#include "util/message.h"
2017-09-27 17:47:29 -04:00
BasebandSampleSink::BasebandSampleSink() :
m_guiMessageQueue(0)
{
connect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()));
}
BasebandSampleSink::~BasebandSampleSink()
{
}
2015-08-17 02:29:34 -04:00
void BasebandSampleSink::handleInputMessages()
2015-08-17 02:29:34 -04:00
{
Message* message;
while ((message = m_inputMessageQueue.pop()) != 0)
2015-08-17 02:29:34 -04:00
{
if (handleMessage(*message))
{
delete message;
}
}
}