-
Notifications
You must be signed in to change notification settings - Fork 120
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
closing a port twice crashes node #21
Comments
This issue seems to be fixed now, shouldn't be closed? :) |
Give it a try. I think it still crashes. |
For me it crashes. Playing around with node-midi I found out that it doesn't try to set the client name. So you could set the client name to the same name as the port name and check the first part of the returned name. Setting the client name should be supported by node-midi anyway. RtMidi already supports that. |
@keinstein you can set the name but it doesn't always return it, totally depends on the library you're linked against. But I see you've found thestk/rtmidi#6 too ;) |
As far as I know, RtMidi returns either the port name or the client name + some stuff. So, if you set port and client to the same name, you could be shure that this name is a part of the port description that is returned by RtMidi. Btw. Switching to port names for ALSA wouldn't solve the issue as some drivers name their ports just “port 1” etc. |
Feel free to give it a go, I'm happy to review any patches. Try testing it on a couple of platforms though. |
node version v0.10.9
The text was updated successfully, but these errors were encountered: