2014-05-18 11:52:39 -04:00
|
|
|
#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();
|
|
|
|
|
2014-06-15 04:32:25 -04:00
|
|
|
virtual void feed(SampleVector::const_iterator begin, SampleVector::const_iterator end, bool positiveOnly) = 0;
|
2014-05-18 11:52:39 -04:00
|
|
|
virtual void start() = 0;
|
|
|
|
virtual void stop() = 0;
|
|
|
|
virtual bool handleMessage(Message* cmd) = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // INCLUDE_SAMPLESINK_H
|