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. --- drumgizmo/output/outputdummy.cc | 5 +++++ drumgizmo/output/outputdummy.h | 1 + 2 files changed, 6 insertions(+) (limited to 'drumgizmo/output') diff --git a/drumgizmo/output/outputdummy.cc b/drumgizmo/output/outputdummy.cc index eef61b8..1b98896 100644 --- a/drumgizmo/output/outputdummy.cc +++ b/drumgizmo/output/outputdummy.cc @@ -64,6 +64,11 @@ void DummyOutputEngine::post(size_t nsamples) { } +std::size_t DummyOutputEngine::getSamplerate() const +{ + return 44100; +} + bool DummyOutputEngine::isFreewheeling() const { return true; diff --git a/drumgizmo/output/outputdummy.h b/drumgizmo/output/outputdummy.h index 3e24495..b21961b 100644 --- a/drumgizmo/output/outputdummy.h +++ b/drumgizmo/output/outputdummy.h @@ -42,5 +42,6 @@ public: void pre(size_t nsamples) override; void run(int ch, sample_t* samples, size_t nsamples) override; void post(size_t nsamples) override; + std::size_t getSamplerate() const override; bool isFreewheeling() const override; }; -- cgit v1.2.3