summaryrefslogtreecommitdiff
path: root/drumgizmo
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-08-01 16:54:34 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-08-01 17:04:12 +0200
commit857da27194ea621734be7df4c1d940992dbb26e9 (patch)
tree8698f4347b1a1ac0c1133533963b64f7eb041eaf /drumgizmo
parent982aad68eedfcd70a19864c31255e70a34876db4 (diff)
Remove the last references to hardcoded 44k1Hz samplerate.
Diffstat (limited to 'drumgizmo')
-rw-r--r--drumgizmo/output/outputdummy.cc5
-rw-r--r--drumgizmo/output/outputdummy.h1
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;
};