summaryrefslogtreecommitdiff
path: root/drumgizmo/output
diff options
context:
space:
mode:
Diffstat (limited to 'drumgizmo/output')
-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;
};