MIDIObjectGetProperties returning err -50 on virtual MIDI port
MIDIObjectGetProperties returning err -50 on virtual MIDI port
- Subject: MIDIObjectGetProperties returning err -50 on virtual MIDI port
- From: Michael Tyson <email@hidden>
- Date: Tue, 08 Nov 2011 23:35:53 +0100
Hi again - two questions in one day, I'm getting greedy =)
I'm using Pete Goodliffe's PGMidi utility to skip some of the legwork on my MIDI implementation. I'm having an issue identifying the name of virtual MIDI ports - I have MoDrum running in the background on my iPhone (running iOS 5), and its port is showing up, but the call to MIDIObjectGetProperties is returning -50, somewhat unhelpfully.
MIDIEndpointRef new_endpoint; // = result of MIDIGetDestination(index)
MIDIEntityRef entity = 0;
MIDIEndpointGetEntity(new_endpoint, &entity);
CFPropertyListRef properties = nil;
OSStatus s = MIDIObjectGetProperties(entity, &properties, true);
// s is -50 when called on the MoDrum endpoint
Anyone have a clue why?
Many thanks,
Michael
--
Michael Tyson | atastypixel.com
A Tasty Pixel: Artisan apps
aim: mikerusselltyson
twitter: MichaelTyson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden