Javax.sound.* package imlementation?

I just started looking at this tool. Is there iOS or Android implementation of javasound ? Please advise. I’d like to be able to use java.sound.* package to do MIDI programming.

I just did quick test got the following error:

art W 47626 1799622 /Volumes/SSD/gh-moe-master-1.2.5/aosp/art/runtime/art_method.cc:214] Unresolved exception class when finding catch block: javax.sound.midi.InvalidMidiDataException
2017-01-31 20:55:02.972 HelloWorld[47626:1799622] *** Terminating app due to uncaught exception ‘java.lang.NoClassDefFoundError’, reason: 'java.lang.NoClassDefFoundError: Ljavax/sound/midi/MidiSystem;
at com.example.MyCommonClass.play(MyCommonClass.java:42)
at com.midilogic.helloworld.ui.AppViewController.BtnPressedCancel_button(AppViewController.java:54)
at apple.uikit.c.UIKit.UIApplicationMain(Native Method)
at com.midilogic.helloworld.Main.main(Main.java:20)

*** First throw call stack:
(
0 CoreFoundation 0x07797bf2 __exceptionPreprocess + 194
1 libobjc.A.dylib 0x07144e66 objc_exception_throw + 52
2 MOE 0x064c78f5 _Z29hasObjCRuntimeBeenInitializedv + 0
3 MOE 0x064cdfe0 Z26nativeToJavaMessageHandlerP7ffi_cifPvPS1_S1 + 1728
4 MOE 0x064d558c ffi_closure_inner + 387
5 MOE 0x064d4c52 ffi_closure_i386 + 50
6 UIKit 0x0470d016 -[UIApplication sendAction:to:from:forEvent:] + 91
7 UIKit 0x0470cfb0 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 41
8 UIKit 0x048bc865 -[UIControl sendAction:to:forEvent:] + 64
9 UIKit 0x048bcbcd -[UIControl _sendActionsForEvents:withEvent:] + 462
10 UIKit 0x048bba52 -[UIControl touchesEnded:withEvent:] + 717
11 UIKit 0x04783e20 -[UIWindow _sendTouchesForEvent:] + 3063
12 UIKit 0x0478565b -[UIWindow sendEvent:] + 4312
13 UIKit 0x0472bad4 -[UIApplication sendEvent:] + 395
14 UIKit 0x04fcfa8c __dispatchPreprocessedEventFromEventQueue + 3706
15 UIKit 0x04fc7b8a __handleEventQueue + 5345
16 CoreFoundation 0x07736edf CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 15
17 CoreFoundation 0x0771afa7 __CFRunLoopDoSources0 + 519
18 CoreFoundation 0x0771a434 __CFRunLoopRun + 1124
19 CoreFoundation 0x07719d5b CFRunLoopRunSpecific + 395
20 CoreFoundation 0x07719bbb CFRunLoopRunInMode + 123
21 GraphicsServices 0x093abb4c GSEventRunModal + 177
22 GraphicsServices 0x093ab9c7 GSEventRun + 80
23 UIKit 0x0470aff3 UIApplicationMain + 148
24 MOE 0x064d4b18 ffi_call_i386 + 24
)
libc++abi.dylib: terminating with uncaught exception of type ObjCException

BUILD SUCCESSFUL

Total time: 23.912 secs

Why I do not see deobfuscated stack from XCode ?

Wow, I haven’t seen javax.sound for a decade now :slight_smile:

I don’t know if there is an implementation of it for Android. It is not included by default for sure. Even if there was an implementation for Android, it would have to be ported to iOS, because it needs access to the audio devices (probably not too difficult, but work that someone needs to do.)

As a starting point, you could look at this: https://github.com/kshoji/javax.sound.midi-for-Android

Why I do not see deobfuscated stack from XCode ?

Could you please open a separate thread with more information?