RE: hiding Virtual Midi ports
RE: hiding Virtual Midi ports
- Subject: RE: hiding Virtual Midi ports
- From: "Alex Sheh" <email@hidden>
- Date: Wed, 3 May 2006 15:20:43 -0700
- Thread-topic: hiding Virtual Midi ports
Thanks, Kurt, that works well.
- Alex
-----Original Message-----
From: Kurt Revis [mailto:email@hidden]
Sent: Tuesday, May 02, 2006 11:37 PM
To: Alex Sheh
Cc: CoreAudio API
Subject: Re: hiding Virtual Midi ports
On May 2, 2006, at 4:20 PM, Alex Sheh wrote:
> I am using Virtual MIDI ports to forward MIDI data from myDriver to
> myApp. Since these Virtual ports are for internal use, I do not want
> 3rd party apps to be able to select these Virtual ports from their
> GUI.
> Is there a way to make it so that my Virtual MIDI ports are not
> visible to all apps on the system?
Sure:
MIDIObjectSetIntegerProperty(yourVirtualEndpointRef,
kMIDIPropertyPrivate, 1);
Note that this isn't 100% foolproof. There will be a window of time
that the endpoint is visible to other apps -- after you create your
virtual endpoint, but before you set the property's value. This is
probably more of a theoretical problem than a real one, though.
--
Kurt Revis
email@hidden
_______________________________________________
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