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
This is an excellent library, but I encountered problems when compiling with the IL2CPP mode. I hope support for Unity IL2CPP mode can be added. Thank you very much!
error msg:
Unity: NotSupportedException: IL2CPP does not support marshaling delegates that point to instance methods to native code. The method we're attempting to marshal is: Melanchall.DryWetMidi.Multimedia.InputDevice::OnMessage_Win
Melanchall.DryWetMidi.Multimedia.InputDeviceApi64.Api_OpenDevice_Win (System.IntPtr info, System.IntPtr sessionHandle, Melanchall.DryWetMidi.Multimedia.InputDeviceApi+Callback_Win callback, System.Int32 sysExBufferSize, System.IntPtr& handle) (at <00000000000000000000000000000000>:0)
Melanchall.DryWetMidi.Multimedia.InputDevice.EnsureHandleIsCreated () (at <00000000000000000000000000000000>:0)
Melanchall.DryWetMidi.Multimedia.InputDevice.StartEventsListening () (at <00000000000000000000000000000000>:0)
The text was updated successfully, but these errors were encountered:
I know about this problem, but I can't turn those methods within the library into static ones unfortunately. It will just ruine the logic. I'm going to keep the issue open but right now I can't provide a solution.
@fingerx Can you please say how to create such an application? Or maybe you can provide me a sample Visual Studio solution so I can run it on my side to debug?
This is an excellent library, but I encountered problems when compiling with the IL2CPP mode. I hope support for Unity IL2CPP mode can be added. Thank you very much!
error msg:
Unity: NotSupportedException: IL2CPP does not support marshaling delegates that point to instance methods to native code. The method we're attempting to marshal is: Melanchall.DryWetMidi.Multimedia.InputDevice::OnMessage_Win
Melanchall.DryWetMidi.Multimedia.InputDeviceApi64.Api_OpenDevice_Win (System.IntPtr info, System.IntPtr sessionHandle, Melanchall.DryWetMidi.Multimedia.InputDeviceApi+Callback_Win callback, System.Int32 sysExBufferSize, System.IntPtr& handle) (at <00000000000000000000000000000000>:0)
Melanchall.DryWetMidi.Multimedia.InputDevice.EnsureHandleIsCreated () (at <00000000000000000000000000000000>:0)
Melanchall.DryWetMidi.Multimedia.InputDevice.StartEventsListening () (at <00000000000000000000000000000000>:0)
The text was updated successfully, but these errors were encountered: