2024-02-20 14:14:24 +00:00
|
|
|
#pragma once
|
|
|
|
#include "EffectApplication.h"
|
|
|
|
#include "../shape/Point.h"
|
|
|
|
|
|
|
|
class DashedLineEffect : public EffectApplication {
|
|
|
|
public:
|
|
|
|
DashedLineEffect();
|
|
|
|
~DashedLineEffect();
|
|
|
|
|
2024-08-26 17:09:29 +00:00
|
|
|
Point apply(int index, Point input, const std::vector<std::atomic<double>>& values, double sampleRate) override;
|
2024-02-20 14:14:24 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
const static int MAX_BUFFER = 192000;
|
|
|
|
std::vector<Point> buffer = std::vector<Point>(MAX_BUFFER);
|
|
|
|
int dashIndex = 0;
|
|
|
|
int bufferIndex = 0;
|
2024-08-26 17:09:29 +00:00
|
|
|
};
|