AFV initial commit

This commit is contained in:
Roland Rossgotterer
2019-09-14 21:18:26 +02:00
committed by Mat Sutcliffe
parent 7030302e73
commit b5a2f2ad13
100 changed files with 6821 additions and 25 deletions

View File

@@ -0,0 +1,32 @@
#ifndef SIMPLECOMPRESSOREFFECT_H
#define SIMPLECOMPRESSOREFFECT_H
#include "blacksound/blacksoundexport.h"
#include "sampleprovider.h"
#include "blacksound/dsp/SimpleComp.h"
#include <QObject>
#include <QTimer>
class BLACKSOUND_EXPORT SimpleCompressorEffect : public ISampleProvider
{
Q_OBJECT
public:
SimpleCompressorEffect(ISampleProvider *source, QObject *parent = nullptr);
virtual int readSamples(QVector<qint16> &samples, qint64 count) override;
void setEnabled(bool enabled);
void setMakeUpGain(double gain);
private:
QTimer m_timer;
ISampleProvider *m_sourceStream;
bool m_enabled = true;
chunkware_simple::SimpleComp m_simpleCompressor;
const int channels = 1;
};
#endif // SIMPLECOMPRESSOREFFECT_H