osci-render/Source/audio/SmoothEffect.h

16 wiersze
396 B
C
Czysty Zwykły widok Historia

2023-03-28 14:52:51 +00:00
#pragma once
#include "EffectApplication.h"
#include "../shape/Vector2.h"
class SmoothEffect : public EffectApplication {
public:
SmoothEffect();
~SmoothEffect();
Vector2 apply(int index, Vector2 input, double value, double frequency, double sampleRate) override;
private:
const int MAX_WINDOW_SIZE = 2048;
std::vector<Vector2> window;
int windowSize = 1;
int head = 0;
};