Closed liquidg3 closed 6 months ago
i wlill handle the issue at later
It seems there can not use doubleArray type transform to floatArray, i will support DataType.floatArray ASAP
Support DataType.floatArray in ffi-rs@1.0.63
, you can try with the latest version
That worked! Epic work! I meant to get back to you sooner actually, my bad!
I am glad that the library can help you out
Firstly, great work!
We've almost completely replaced ffi-napi in our platform with ffi-rs.
Here is some background on us if you're interested: https://lumenalabs.com
We're utilizing some biosensors and Lab Streaming Layer (https://labstreaminglayer.org/#/) to track different biometrics.
We are so close, but the function we are trying to call is here:
https://github.com/sccn/liblsl/blob/master/src/lsl_outlet_c.cpp#L40C1-L42C2
And we can't seem to get it to call in a way that sends any data to our neuro-engine.
Here is how we have it defined(...):
It's the second
paramType
- the function in c++ is defined with a pointer to a float array, which we're assuming is the issues. We've tried every DataType.*Array we can find in hopes that something would be coerced to functioning, but we can't get it.Any suggestions or enhancements would make our day!
Thanks so much!