mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
22 lines
468 B
C++
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
|