-
Notifications
You must be signed in to change notification settings - Fork 60
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
Crash on Pm_Write #31
Comments
Can you try running the code with the |
@kisielk Tried that and got the same error. |
Okay, but you didn't get any messages from the Go runtime? Also, which version of Go are you using? |
Didn't notice any extra messages from the Go runtime. |
Also here is
|
Reviewing the cgo docs it says that the GODEBUG checks are sidestepped by code that uses package unsafe, and the code that is crashing in this case does use unsafe. I wonder if it's possible to not use unsafe? |
Looks like we have to use unsafe.Pointer since PortMidiStream is void |
FWIW I started playing with an alternative midi implementation https://github.com/scgolang/midi seems pretty stable on linux so far, haven't used it on mac much yet |
@briansorahan cool, I will check it out. One thing I'm struggling with in PortMIDI is to have an efficient way to have channels for incoming MIDI events implemented in an efficient way, preferably without polling. Seems like using ALSA might solve that. |
@kisielk Writing that package has been interesting so far. The linux part took me maybe two hours and resulted in a beautiful tiny interface which basically just had Open, Read, Write, and Close. Read would block until I sent data from the device, which seemed just perfect to me since consumers of the package can easily type |
i see this fairly regularly on linux (via the launchpad package) but haven't yet figured out how to reproduce
The text was updated successfully, but these errors were encountered: