mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-27 02:09:14 -05:00
26 lines
390 B
C++
26 lines
390 B
C++
#include "dsp/samplesink.h"
|
|
#include "util/message.h"
|
|
|
|
SampleSink::SampleSink()
|
|
{
|
|
connect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()));
|
|
}
|
|
|
|
SampleSink::~SampleSink()
|
|
{
|
|
}
|
|
|
|
void SampleSink::handleInputMessages()
|
|
{
|
|
Message* message;
|
|
|
|
while ((message = m_inputMessageQueue.pop()) != 0)
|
|
{
|
|
if (handleMessage(*message))
|
|
{
|
|
delete message;
|
|
}
|
|
}
|
|
}
|
|
|