Files
pilotclient/src/blacksound/sampleprovider/sampleprovider.h
Roland Rossgotterer b5a2f2ad13 AFV initial commit
2019-10-11 18:58:47 +01:00

22 lines
468 B
C++

#ifndef SAMPLEPROVIDER_H
#define SAMPLEPROVIDER_H
#include "blacksound/blacksoundexport.h"
#include <QObject>
#include <QVector>
class BLACKSOUND_EXPORT ISampleProvider : public QObject
{
Q_OBJECT
public:
ISampleProvider(QObject *parent = nullptr) : QObject(parent) {}
virtual ~ISampleProvider() {}
virtual int readSamples(QVector<qint16> &samples, qint64 count) = 0;
virtual bool isFinished() { return false; }
};
#endif // SAMPLEPROVIDER_H