You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I would like to use a NDK library (Amidi) in my rinf-rust code.
I had a look at agdk-oboe, but it uses cargo-apk-build for the app and I would like to build the app from Android Studio.
I think I could use the ndk-crate but it has been split up into several modules and I don't know how I can use them with rinf.
Has anybody already used NDK with rinf on android?
My goal is to use NDK AMidi lib with rinf for an android app. The problem is that AMidi API still needs to get a list of available MidiDevices from android.media.midi from the Java side.
So I might have an add-to-app scenario where I want to use the rinf-ffi/example as my flutter module.
Before starting the FlutterActivity I would get the available MidiDevices from the Java side.
Then on my rinf/rust side I think i need to use the bindings ndk-sys to call AMidiDevice_fromJava⚠.
This is the idea so far. But do I still need the other crates like ndk-glue etc...?
I think I also would need to link to Amidi lib in Ndk and include amidi.h .
Is it possible to build this with rinf ? Any ideas how to implement this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I would like to use a NDK library (Amidi) in my rinf-rust code.
I had a look at agdk-oboe, but it uses cargo-apk-build for the app and I would like to build the app from Android Studio.
I think I could use the ndk-crate but it has been split up into several modules and I don't know how I can use them with rinf.
Has anybody already used NDK with rinf on android?
My goal is to use NDK AMidi lib with rinf for an android app. The problem is that AMidi API still needs to get a list of available MidiDevices from android.media.midi from the Java side.
So I might have an add-to-app scenario where I want to use the rinf-ffi/example as my flutter module.
Before starting the FlutterActivity I would get the available MidiDevices from the Java side.
Then on my rinf/rust side I think i need to use the bindings ndk-sys to call
AMidiDevice_fromJava⚠.
This is the idea so far. But do I still need the other crates like ndk-glue etc...?
I think I also would need to link to Amidi lib in Ndk and include amidi.h .
Is it possible to build this with rinf ? Any ideas how to implement this?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions