mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 15:25:34 +08:00
AFV initial commit
This commit is contained in:
committed by
Mat Sutcliffe
parent
7030302e73
commit
b5a2f2ad13
21
src/blacksound/sampleprovider/mixingsampleprovider.h
Normal file
21
src/blacksound/sampleprovider/mixingsampleprovider.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef MIXINGSAMPLEPROVIDER_H
|
||||
#define MIXINGSAMPLEPROVIDER_H
|
||||
|
||||
#include "blacksound/blacksoundexport.h"
|
||||
#include "blacksound/sampleprovider/sampleprovider.h"
|
||||
#include <QSharedPointer>
|
||||
#include <QVector>
|
||||
|
||||
class BLACKSOUND_EXPORT MixingSampleProvider : public ISampleProvider
|
||||
{
|
||||
public:
|
||||
MixingSampleProvider(QObject * parent = nullptr) : ISampleProvider(parent) {}
|
||||
|
||||
void addMixerInput(ISampleProvider *provider) { m_sources.append(provider); }
|
||||
virtual int readSamples(QVector<qint16> &samples, qint64 count) override;
|
||||
|
||||
private:
|
||||
QVector<ISampleProvider*> m_sources;
|
||||
};
|
||||
|
||||
#endif // MIXINGSAMPLEPROVIDER_H
|
||||
Reference in New Issue
Block a user