kopia lustrzana https://github.com/jameshball/osci-render
14 wiersze
333 B
C++
14 wiersze
333 B
C++
#pragma once
|
|
#include "EffectApplication.h"
|
|
#include "../shape/Point.h"
|
|
|
|
class SmoothEffect : public EffectApplication {
|
|
public:
|
|
SmoothEffect();
|
|
~SmoothEffect();
|
|
|
|
Point apply(int index, Point input, const std::vector<double>& values, double sampleRate) override;
|
|
private:
|
|
double leftAvg = 0;
|
|
double rightAvg = 0;
|
|
}; |