Hey everybody.
I'm receiving errors in PGMidi when other applications create or remove virtual MIDI connections. The errors are not fatal, and as far as I can tell, my app works as expected after receiving them.
In PGMidi.mm, when connectSource: or disconnectSource: is called...
- (void) connectSource:(MIDIEndpointRef)endpoint
{
PGMidiSource *source = [[PGMidiSource alloc] initWithMidi:self endpoint:endpoint];
[sources addObject:source];
[delegate midi:self sourceAdded:source];
OSStatus s = MIDIPortConnectSource(inputPort, endpoint, source);
NSLogError(s, @"Connecting to MIDI source");
}
I get the following error:
Error (Disconnecting from MIDI source): -50:Error Domain=NSMachErrorDomain Code=-50 "The operation couldn’t be completed. (Mach error -50.)"