Re: AudioDeviceAddPropertyListener & custom controls
Re: AudioDeviceAddPropertyListener & custom controls
- Subject: Re: AudioDeviceAddPropertyListener & custom controls
- From: Jeff Moore <email@hidden>
- Date: Wed, 7 Jun 2006 17:05:15 -0700
Your HAL plug-in has to translate the IOAudioControl into a set of
properties that can be queried through the HAL's API. Once you do
that, clients listen for the changes to the control just like they
would for volume or mute.
In general, I'd advise you to implement the a similar set of
properties as what the HAL provides for a control that behaves more
or less the same. For instance, if you are implementing properties
for a custom IOAudioLevelControl subclass, you should implement
properties that cover the scalar and dB values, the dB range, and
converting between dB and scalar.
On Jun 7, 2006, at 2:59 PM, david tay wrote:
I have a device with custom IOAudioControls and a HALPlugin client
for an application client to access via the CoreAudio HAL layer.
How would one listen to changes in the custom controls?
AudioDeviceAddPropertyListener() is used to add the client
application as a listener and yields noErr.
The relevant IORegistry entries are correctly set.
However the client application never gets any notifications.
--
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