Re: How to use IOAudioDeviceIconName property?
Re: How to use IOAudioDeviceIconName property?
- Subject: Re: How to use IOAudioDeviceIconName property?
- From: Daniel Mack <email@hidden>
- Date: Fri, 8 May 2009 12:50:05 +0200
Hi Jeff,
thanks for your answers.
On Mon, Apr 27, 2009 at 11:32:21AM -0700, Jeff Moore wrote:
>> there is a property defined in IOAudioDefines.h called
>> kIOAudioDeviceIconNameKey. I'd guess this is about the little picture
>> shown in applications like AMS,
>
> This is correct. kIOAudioDeviceIconNameKey along with
> kIOAudioDeviceIconTypeKey and kIOAudioDeviceIconSubDirKey are used to
> describe an icon in your driver's resource bundle that can be used by a
> user-space entity.
>
>> but I wonder how to use it from a kernel
>> driver. Which kind of object should be associated with it, what are
>> the constraints? Googl'ing didn't help much.
>
> I'm not sure I'm following the question. Do you want to use an icon in
> the kernel or are you trying to supply an icon for your device to user-
> space? I'm not sure why you'd want to do the former, but for the latter
> to supply an icon for user-space programs to use, you need to do a few
> things.
The idea is to provide a logo to CoreAudio userland stack in order to
make AMS show it and maybe add functionaltity for doing the same thing
in own applications.
> First, your driver has to supply a resource bundle that the HAL can
> load. The driver tells the HAL the path to this bundle via the registry
> property on the IOAudioEngine or IOAudioDevice object with the key
> kIOAudioDeviceLocalizedBundleKey. The value is a path to the resource
> bundle that is relative to /System/Library/Extensions. There is an
> example of a driver supplying this bundle in the AudioReflectorDriver
> sample code in our SDK.
Hmm. I still don't see what you mean. There is no occurance of that keys
or of any of the functions you mentioned in the sources, not even in
cutting edge development releases.
The build result looks like this on my machine:
noname:Debug daniel$ pwd
/Developer/Examples/CoreAudio/HAL/AudioReflectorDriver/build/Debug
noname:Debug daniel$ find .
_______________________________________________
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