chore: bump libpasada interface

This commit is contained in:
2026-05-19 22:58:28 +02:00
parent 4ae0c9aef8
commit 018bf93628
6 changed files with 5 additions and 82 deletions

View File

@@ -3,7 +3,7 @@
//
#include <jni.h>
#include "StepDetector.h"
#include "step_detector.h"
#include <new>
#include <vector>
@@ -26,7 +26,7 @@ Java_at_lockstep_filter_StepDetector_native_1create(
jclass /*unused*/, jlong engineHandle) {
auto *listener = reinterpret_cast<StepListener *>(engineHandle);
// We use std::nothrow so `new` returns a nullptr if the engine creation fails
auto *detector = new(std::nothrow) StepDetector(listener);
auto *detector = new(std::nothrow) StepDetector(60.0 /* FPS */, listener); // TODO
return reinterpret_cast<jlong>(detector);
}