Re: How to remember the MIDIEndpoint after reboot
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.