Re: Audio driver - can I hide it?
Re: Audio driver - can I hide it?
- Subject: Re: Audio driver - can I hide it?
- From: Jeff Moore <email@hidden>
- Date: Wed, 18 Mar 2009 15:55:38 -0700
On Mar 18, 2009, at 3:46 PM, Thomas Tempelmann wrote:
I've written a special-use IOKit audio output driver which I like to
hide from "normal" use. I.e, I don't want it to appear in programs
that query for output devices, such as the Sound Preferences app does.
Only my own tools need to know that it is available.
Is that possible?
Certainly. You can add the key, kIOAudioEngineIsHiddenKey, to the
IORegistry entries for your IOAudioEngine instance. The value for the
key is an integer where a value of 0 means that the device isn't
hidden, and non-zero if it is hidden.
Doing this will tell the HAL not to include your device in the device
list. The only way to discover the device is to use
kAudioHardwarePropertyDeviceForUID. This means that any programs that
need to use the device need to know the UID or be able to discover it
using means outside of the HAL (usually, it will just be hard coded).
And is that even the right list for asking questions for audio
drivers?
This is a fine place to ask questions about drivers.
--
Jeff Moore
Core Audio
Apple
_______________________________________________
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