Error 50 when connecting virtual MIDI Sources (PGMidi)

103 views
Skip to first unread message

Alexander

unread,
Oct 15, 2012, 8:38:39 PM10/15/12
to open-music-app...@googlegroups.com

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.)"


After reading the documentation, I believe it may have something to do with virtual sources not having entities... Is this correct?  If so, is this error expected or is there another proper way to connect and disconnect to virtual endpoints?  Any input is greatly appreciated. 

All the best,
Alexander

Oliver Greschke

unread,
Mar 21, 2015, 1:58:43 PM3/21/15
to open-music-app...@googlegroups.com
Hi, have you found out anything about this?

I would be interested too.

Cheers,
Oliver
Reply all
Reply to author
Forward
0 new messages