From 857da27194ea621734be7df4c1d940992dbb26e9 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 1 Aug 2018 16:54:34 +0200 Subject: Remove the last references to hardcoded 44k1Hz samplerate. --- test/dgreftest/midiinputengine.cc | 5 +++++ test/dgreftest/midiinputengine.h | 1 + 2 files changed, 6 insertions(+) (limited to 'test/dgreftest') diff --git a/test/dgreftest/midiinputengine.cc b/test/dgreftest/midiinputengine.cc index 84f4cc6..e984d58 100644 --- a/test/dgreftest/midiinputengine.cc +++ b/test/dgreftest/midiinputengine.cc @@ -192,6 +192,11 @@ void MidifileInputEngine::post() { } +void MidifileInputEngine::setSampleRate(double sample_rate) +{ + this->samplerate = sample_rate; +} + bool MidifileInputEngine::isFreewheeling() const { return true; diff --git a/test/dgreftest/midiinputengine.h b/test/dgreftest/midiinputengine.h index a752ff5..ffd22f8 100644 --- a/test/dgreftest/midiinputengine.h +++ b/test/dgreftest/midiinputengine.h @@ -50,6 +50,7 @@ public: void pre() override; void run(size_t pos, size_t len, std::vector& events) override; void post() override; + void setSampleRate(double sample_rate) override; bool isFreewheeling() const override; private: -- cgit v1.2.3