mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
AFV initial commit
This commit is contained in:
committed by
Mat Sutcliffe
parent
7030302e73
commit
b5a2f2ad13
21
src/blacksound/sampleprovider/sampleprovider.h
Normal file
21
src/blacksound/sampleprovider/sampleprovider.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user