summaryrefslogtreecommitdiff
path: root/src/drumgizmo.cc
diff options
context:
space:
mode:
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();