-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android support? #4
Comments
hello ! that would be nice - I would expect that it "just works" on android as Android uses ALSA behind the scene if I'm not mistaken but I do not knjow at all on iOS - is it not CoreMidi there too ? |
Yes coremidi seems to work on iOS but alsa doesn't on Android afaik |
damn I hope we don't have to call Java APIs to make it work |
I fear you have to :( |
just checked and apparently no ! android NDK comes with a C/C++ midi API: |
In case it matters, Android Native MIDI API is available only in Android 10 or later. |
argh :) communicating through JNI is an... exercice in patience to say the least (and I have very few experience with it). |
50% done, I could make the library build for iOS, there were a couple minor things. |
the code that seems required for android is .... yuck yuck yuck https://github.com/thestk/rtmidi/blob/master/RtMidi.cpp#L4838 |
Excellent :) |
https://github.com/android/ndk-samples/blob/main/native-midi/app/src/main/cpp/AppMidiManager.cpp definitely not ahah, I'd rather like to avoid having some weird JNI calls and Java object discovery in the middle. Maybe it can be part of some example though - the end-user would be able to implement these calls however they see fit. |
Anyway, now it's implemented in rtmidi it's still good news :) |
Title says it all :)
The text was updated successfully, but these errors were encountered: