• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
MIDIObjectGetProperties returning err -50 on virtual MIDI port
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: MIDIObjectGetProperties returning err -50 on virtual MIDI port
      • From: Doug Wyatt <email@hidden>
  • Prev by Date: Re: kAudioFormatUnsupportedDataFormatError
  • Next by Date: Re: MIDIObjectGetProperties returning err -50 on virtual MIDI port
  • Previous by thread: Changing audio session and disabling recording when moving to background
  • Next by thread: Re: MIDIObjectGetProperties returning err -50 on virtual MIDI port
  • Index(es):
    • Date
    • Thread