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); }