• 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: How to remember the MIDIEndpoint after reboot
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to remember the MIDIEndpoint after reboot


  • Subject: Re: How to remember the MIDIEndpoint after reboot
  • From: Philippe Wicker <email@hidden>
  • Date: Sun, 15 Jun 2003 12:31:30 +0200

On Sunday, June 15, 2003, at 10:47 AM, Nobuyasu Jinnai/神内伸恭 wrote:

> Dir sir,
>
> I have to remember MIDIEndpoint of user selected after reboot
> in a setting file.
> Is there any way to determin MIDIEndpoint after reboot from this file?
> Can MIDIUniqueID use for this perpose?

Ooops, I made a confusion between endpoint ref and endpoint ID in my
last post. Add these line of codes to the snippet, it will show that
the endpoint ID is indeed the same after each execution. It's also
unchanged after a restart of the computer. Sorry for the confusion.

// Get the unique ID
MIDIUniqueID unique_id ;
status = MIDIObjectGetIntegerProperty(endpoint_ref,
kMIDIPropertyUniqueID, &unique_id);

// Print the unique ID
printf ("unique_id 0x%x\n", unique_id) ;

If the endpoint is not persistent, then trying to get it using for
instance MIDIObjectFindByUniqueID will fail.

Philippe Wicker
email@hidden
_______________________________________________
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.

References: 
 >How to remember the MIDIEndpoint after reboot (From: Nobuyasu Jinnai/神内伸恭 <email@hidden>)

  • Prev by Date: Re: How to remember the MIDIEndpoint after reboot
  • Next by Date: Re: How to remember the MIDIEndpoint after reboot
  • Previous by thread: Re: How to remember the MIDIEndpoint after reboot
  • Next by thread: Double-free in DLS unitialize
  • Index(es):
    • Date
    • Thread