diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-08-01 16:54:34 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2018-08-01 17:04:12 +0200 |
commit | 857da27194ea621734be7df4c1d940992dbb26e9 (patch) | |
tree | 8698f4347b1a1ac0c1133533963b64f7eb041eaf /test/dgreftest | |
parent | 982aad68eedfcd70a19864c31255e70a34876db4 (diff) |
Remove the last references to hardcoded 44k1Hz samplerate.
Diffstat (limited to 'test/dgreftest')
-rw-r--r-- | test/dgreftest/midiinputengine.cc | 5 | ||||
-rw-r--r-- | test/dgreftest/midiinputengine.h | 1 |
2 files changed, 6 insertions, 0 deletions
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<event_t>& events) override; void post() override; + void setSampleRate(double sample_rate) override; bool isFreewheeling() const override; private: |