1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-09-13 00:26:35 -04:00
sdrangel/include/dsp/samplesink.h
2015-08-13 08:51:33 +02:00

23 lines
584 B
C++

#ifndef INCLUDE_SAMPLESINK_H
#define INCLUDE_SAMPLESINK_H
#include <QObject>
#include "dsptypes.h"
#include "util/export.h"
class Message;
class SDRANGELOVE_API SampleSink : public QObject {
public:
SampleSink();
virtual ~SampleSink();
virtual bool init(Message* cmd) = 0;
virtual void feed(SampleVector::const_iterator begin, SampleVector::const_iterator end, bool positiveOnly) = 0;
virtual void start() = 0;
virtual void stop() = 0;
virtual bool handleMessage(Message* cmd) = 0; //!< Handle message immediately or submit it to a queue
};
#endif // INCLUDE_SAMPLESINK_H