summaryrefslogtreecommitdiff
path: root/src/drumgizmo.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-06-06 20:26:13 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-06-06 20:26:13 +0200
commit195a3d15e490465b64a19d2f09e8a2d8d81e2b2a (patch)
tree8bcb0a8ee9431ae5e00369354b22ed5763cc75fc /src/drumgizmo.cc
parente43a808290630b4a0810b283ad1e3b9411bb3016 (diff)
Add basic latency reporting methods.
Diffstat (limited to 'src/drumgizmo.cc')
-rw-r--r--src/drumgizmo.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drumgizmo.cc b/src/drumgizmo.cc
index ef4d3b6..a1278a1 100644
--- a/src/drumgizmo.cc
+++ b/src/drumgizmo.cc
@@ -410,6 +410,11 @@ void DrumGizmo::stop()
// engine.stop();
}
+std::size_t DrumGizmo::getLatency() const
+{
+ return input_processor.getLatency() + resamplers.getLatency();
+}
+
int DrumGizmo::samplerate()
{
return settings.samplerate.load();