Re: Info about AudioDeviceAddPropertyListener?
Re: Info about AudioDeviceAddPropertyListener?
- Subject: Re: Info about AudioDeviceAddPropertyListener?
- From: Stephen Shaw <email@hidden>
- Date: Tue, 16 Aug 2005 12:02:41 -0700
- Thread-topic: Info about AudioDeviceAddPropertyListener?
Thanks, I was primarily looking for where it was covered in the API
documentation in order to verify the arguments. Since it had been removed
from the CoreAudio.pdf and didn't show up in the xcode API help, I was
concerned that perhaps it was being depricated and there was a new preferred
method for installing a device listener.
It appears I should use the same method as the sample.
Thanks,
-srs
On 8/16/05 11:49 AM, "Jeff Moore" <email@hidden> wrote:
> 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
>>
>
_______________________________________________
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