mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-08-26 07:46:33 -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;
|
|
}
|
|
}
|
|
}
|
|
|