1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-03 15:31:15 -05:00
sdrangel/sdrbase/dsp/samplesink.cpp

26 lines
389 B
C++
Raw Normal View History

#include "dsp/samplesink.h"
2015-08-17 02:29:34 -04:00
#include "util/message.h"
SampleSink::SampleSink()
{
2015-08-17 02:29:34 -04:00
connect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessage()));
}
SampleSink::~SampleSink()
{
}
2015-08-17 02:29:34 -04:00
void SampleSink::handleInputMessages()
{
Message* message;
while ((message = m_inputMessageQueue.pop()) != 0)
{
if (handleMessage(*message))
{
delete message;
}
}
}