summaryrefslogtreecommitdiff
path: root/drumgizmo/output
diff options
context:
space:
mode:
Diffstat (limited to 'drumgizmo/output')
-rw-r--r--drumgizmo/output/alsa.cc5
-rw-r--r--drumgizmo/output/alsa.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/drumgizmo/output/alsa.cc b/drumgizmo/output/alsa.cc
index f340c30..465b006 100644
--- a/drumgizmo/output/alsa.cc
+++ b/drumgizmo/output/alsa.cc
@@ -187,6 +187,11 @@ void AlsaOutputEngine::post(size_t nsamples)
snd_pcm_writei(handle, data.data(), nsamples);
}
+size_t AlsaOutputEngine::getBufferSize() const
+{
+ return frames;
+}
+
size_t AlsaOutputEngine::getSamplerate() const
{
return srate;
diff --git a/drumgizmo/output/alsa.h b/drumgizmo/output/alsa.h
index 56011b6..7a7a315 100644
--- a/drumgizmo/output/alsa.h
+++ b/drumgizmo/output/alsa.h
@@ -49,6 +49,7 @@ public:
void pre(size_t nsamples) override;
void run(int ch, sample_t* samples, size_t nsamples) override;
void post(size_t nsamples) override;
+ size_t getBufferSize() const override;
size_t getSamplerate() const override;
bool isFreewheeling() const override;