-
Notifications
You must be signed in to change notification settings - Fork 0
Receiving midi data results in an error #1
Comments
If this truly is on a different thread, then this issue is probably the one to investigate: dart-lang/sdk#37022 A solution proposed here is to write a very small stub in C++ that uses Dart's native ports functionality. In theory, this small stub could be written in the Windows runner (i.e. |
Here's a Go example of receiving async data from another thread: https://github.com/mraleph/go_dart_ffi_example |
I also found this example for C++: https://github.com/mikeperri/flutter-native-callbacks-example I must admit, I do not completely understand everything in there. But wouldn't this be something that would need to be implemented on your Win32 side? It seems to me that the async part is quite strongly connected with the actual calling of the native c++ functionality. Or am I getting this wrong? |
For example, if we consider the method to be Similarly in the C++ example, the method Yet, So I am not sure, if I actually can solve this on my side. |
Hi @timsneath . I finally got around in making a proof of concept to see, whether I was right about the async callback. I made a new repo for that: https://github.com/ghost23/win32_midi If you're interested, the method in question there is |
I am having issues retreiving the midi data once I am connected to a MIDI device, as discussed here: halildurmus/win32#199 (comment)
The text was updated successfully, but these errors were encountered: