From 9d12fe411fdc09ad4ec51dcc79d7b02b6e811014 Mon Sep 17 00:00:00 2001 From: David Madl Date: Wed, 20 May 2026 01:03:54 +0200 Subject: [PATCH] docs --- app/src/main/cpp/jni_stepdetector.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/cpp/jni_stepdetector.cpp b/app/src/main/cpp/jni_stepdetector.cpp index b67a6ee..ccf2ca0 100644 --- a/app/src/main/cpp/jni_stepdetector.cpp +++ b/app/src/main/cpp/jni_stepdetector.cpp @@ -26,7 +26,8 @@ Java_at_lockstep_filter_StepDetector_native_1create( jclass /*unused*/, jlong engineHandle) { auto *listener = reinterpret_cast(engineHandle); // We use std::nothrow so `new` returns a nullptr if the engine creation fails - auto *detector = new(std::nothrow) StepDetector(60.0 /* FPS */, listener); // TODO + // the hardcoded 'fps' is only an initial value, which is re-computed in StepDetector + auto *detector = new(std::nothrow) StepDetector(60.0 /* FPS */, listener); return reinterpret_cast(detector); }