Closed akdmia closed 9 years ago
I would like to add your code to this project but I am unable to work out exactly which class you have used for the queue. There doesn't appear to be a queued list in the android or java docs.
I used an ArrayList. It seems to work ok. I hate java collections, the nomenclature is crazy.
I got dead locks after play sequences with a lot of midi events
I think the native method "write" shouldn't be accessible outside of the midi driver thread
I fixed it by adding a queued list, so i call a "queueEvent" method instead of "write":
and then i write events in the main thread just before render method:
This way it's thread safe.