osci-render/Source/audio/DashedLineEffect.h

18 wiersze
463 B
C
Czysty Zwykły widok Historia

2024-02-20 14:14:24 +00:00
#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<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;
};