-
Notifications
You must be signed in to change notification settings - Fork 298
Description
I'm using RtMidi by calling into a .bundle I generated from the latest version of the included C wrapper without any modifications. It mostly works fine, but intermittently I get a MidiInCore::initialize: error creating OS-X MIDI client object (-50)
error and then I won't be able to use rtmidi_in_create_default
or rtmidi_out_create_default
anymore (they fail with the same error) until I forcibly unload the .bundle. Even reconnecting my MIDI device doesn't fix the problem.
Prior to using macOS High Sierra, I wasn't encountering any issues. Note that I am calling rtmidi_out_free
and rtmidi_in_free
after closing every port I open.
Do you have any suggestions for tracking down the problem?
I'm at a loss for how to debug this, because the initialization seems to go fine until https://github.com/thestk/rtmidi/blob/master/RtMidi.cpp#L626, where MIDIClientCreate
returns -50
, an error code that doesn't seem to be defined in MIDIServices.h
and seems to typically mean "Invalid Parameter".
Could the previous client be sticking around somehow, and if so, how could I determine that and release it if necessary?