• 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
Re: AudioMIDI Setup endpoint names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioMIDI Setup endpoint names


  • Subject: Re: AudioMIDI Setup endpoint names
  • From: Pete Yandell <email@hidden>
  • Date: Fri, 12 Dec 2003 17:28:15 +1100

Under Panther:

result = MIDIObjectFindByUniqueID (externalID, &externalDevice, &deviceType);
result = MIDIObjectGetStringProperty (externalDevice, kMIDIPropertyName, &externalName);

doesn't always give you a valid result even though the system has handed you the unique ID that you're using. The simple workaround is to test the result here and only do:

CFArrayAppendValue(names,externalName);
CFRelease (externalName);

if the result as valid.

The longer answer involves the fact that external devices now have entities, and names are buried somewhere in there. I haven't yet gone through and worked it all out.

Pete Yandell
http://pete.yandell.com/
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: AudioMIDI Setup endpoint names
      • From: Luke Bellandi <email@hidden>
References: 
 >AudioMIDI Setup endpoint names (From: brucecoughlin <email@hidden>)

  • Prev by Date: looking for mono-only AU Music Device....
  • Next by Date: Re: HALLab errors
  • Previous by thread: AudioMIDI Setup endpoint names
  • Next by thread: Re: AudioMIDI Setup endpoint names
  • Index(es):
    • Date
    • Thread