Just small openfl java extension with callback
To compile ndll use:
cd project haxelib run hxcpp Build.xml haxelib run hxcpp Build.xml -Dandroid
Add the extension to haxelib:
haxelib dev TinyMicPATH_TO_THE_EXTENSION_ROOT
Usage in project:
Add
to project.xml
Add
to your manifest file
In class you should have claaback function
public function traceDbm():Void
After main class creation use
TinyMic.init(); // to init JNI functions
TinyMic.assignCallbackObject(this); // to assign callback with traceDbm():Void function
TinyMic.startMeasure(); // to start measuring dB
TinyMic.stopMeasure(); // to stop measuring dB