summaryrefslogtreecommitdiff
path: root/src/latencyfilter.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-10-14 15:24:36 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-02-18 11:43:40 +0100
commit0dc69ba161bb0c8fce2eb0ab3c5eb897f7aa92a7 (patch)
treed33fcf6f429124cd551177e3d28aa3ac7bc29272 /src/latencyfilter.h
parent3515fe8b970bd7cd849ea44e24bc01331e894314 (diff)
Implemented engine part of the latency filter aka. humized timing.
Diffstat (limited to 'src/latencyfilter.h')
-rw-r--r--src/latencyfilter.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/latencyfilter.h b/src/latencyfilter.h
index e34b050..a49dd47 100644
--- a/src/latencyfilter.h
+++ b/src/latencyfilter.h
@@ -29,17 +29,21 @@
#include "inputfilter.h"
struct Settings;
+class Random;
class LatencyFilter
: public InputFilter
{
public:
- LatencyFilter(Settings& settings);
+ LatencyFilter(Settings& settings, Random& random);
- bool filter(event_t& events, size_t pos) override;
+ bool filter(event_t& events, std::size_t pos) override;
std::size_t getLatency() const override;
private:
- //Settings& settings;
+ Settings& settings;
+ Random& random;
+ double latency_offset{0.0};
+ std::size_t latency_last_pos{0};
};