mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-02 16:01:14 -04: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;
|
|
}
|
|
}
|
|
}
|
|
|