chore: bump libpasada interface
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user