Improved implementation

This commit is contained in:
Iscle
2023-01-26 00:19:45 +01:00
parent 2e9a84134b
commit 2c4e153120
3 changed files with 204 additions and 145 deletions

View File

@ -106,7 +106,6 @@ ViPER::ViPER() {
this->rightPan = 1.0;
this->updateProcessTime = false;
this->processTimeMs = 0;
this->enabled = false;
}
ViPER::~ViPER() {
@ -136,10 +135,6 @@ ViPER::~ViPER() {
// TODO: Return int
void ViPER::processBuffer(float *buffer, uint32_t size) {
if (!this->enabled) {
VIPER_LOGD("ViPER is disabled, skip processing");
return;
}
if (size == 0) {
VIPER_LOGD("Buffer size is 0, skip processing");
return;

View File

@ -35,7 +35,6 @@ public:
//private:
bool updateProcessTime;
uint64_t processTimeMs;
bool enabled;
uint32_t samplingRate;
// Effects