docs
This commit is contained in:
@@ -26,7 +26,8 @@ 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(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<jlong>(detector);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user