osci-render/Source/audio/SmoothEffect.h

14 wiersze
339 B
C++

#pragma once
#include "EffectApplication.h"
#include "../shape/Vector2.h"
class SmoothEffect : public EffectApplication {
public:
SmoothEffect();
~SmoothEffect();
Vector2 apply(int index, Vector2 input, const std::vector<double>& values, double sampleRate) override;
private:
double leftAvg = 0;
double rightAvg = 0;
};