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 /drumgizmo/output | |
parent | 982aad68eedfcd70a19864c31255e70a34876db4 (diff) |
Remove the last references to hardcoded 44k1Hz samplerate.
Diffstat (limited to 'drumgizmo/output')
-rw-r--r-- | drumgizmo/output/outputdummy.cc | 5 | ||||
-rw-r--r-- | drumgizmo/output/outputdummy.h | 1 |
2 files changed, 6 insertions, 0 deletions
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; }; |