diff options
Diffstat (limited to 'src/latencyfilter.h')
-rw-r--r-- | src/latencyfilter.h | 10 |
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}; }; |