osci-render/Source/audio/DashedLineEffect.h

17 wiersze
448 B
C++

#pragma once
#include "EffectApplication.h"
#include "../shape/Point.h"
class DashedLineEffect : public EffectApplication {
public:
DashedLineEffect();
~DashedLineEffect();
Point apply(int index, Point input, const std::vector<double>& values, double sampleRate) override;
private:
const static int MAX_BUFFER = 192000;
std::vector<Point> buffer = std::vector<Point>(MAX_BUFFER);
int dashIndex = 0;
int bufferIndex = 0;
};