Re: Info about AudioDeviceAddPropertyListener?
Re: Info about AudioDeviceAddPropertyListener?
- Subject: Re: Info about AudioDeviceAddPropertyListener?
- From: Jeff Moore <email@hidden>
- Date: Tue, 16 Aug 2005 11:49:37 -0700
AudioDeviceAddPropertyListener() is part of the HAL API and is
covered in <CoreAudio/AudioHardware.h>. It has not deprecated. In
fact, it has been part of the HAL's API since it's debut way back in
the developer pre-releases of X.
In this specific case, the code is signing up to listen for the HAL
to notify about changes to the nominal sample rate device.
I'm not sure that I understand your last questions about the
"prescribed method for installing the listener".
AudioDeviceAddPropertyListener() is how you sign in to listen for
sample rate changes on a particular piece of hardware.
On Aug 16, 2005, at 11:42 AM, Stephen Shaw wrote:
I'm looking at the complex play thru example and there is a call to
AudioDeviceAddPropertyListener ()
Looking at the current CoreAudio.pdf (7/6/2005) I can't find a
reference to
this call, however using google, I find a reference to the API in
another
CoreAudio.pdf (at developer.apple.com/audio/pdf/coreaudio.pdf)
dated may
2001
Has this call been depricated? If so, what is the prescribed
method of
installing a listener as in the Complex Play Thru Example?
Thanks,
Stephen
From ComplexPlayThru.cpp:
OSStatus ComplexPlayThru::Init(AudioDeviceID input, AudioDeviceID
output)
{
...
//Add a listener for the input device's sample rate
//the method DeviceSample rate listener will be called if the user
//decides to change the sample rate of the device
err = AudioDeviceAddPropertyListener(mInputDevice.mID,
kAudioPropertyWildcardChannel,
1,
kAudioDevicePropertyNominalSampleRate,
DeviceSampleRateListener,
this);
_______________________________________________
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
--
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