• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Info about AudioDeviceAddPropertyListener?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Info about AudioDeviceAddPropertyListener?
      • From: Stephen Shaw <email@hidden>
References: 
 >Info about AudioDeviceAddPropertyListener? (From: Stephen Shaw <email@hidden>)

  • Prev by Date: Info about AudioDeviceAddPropertyListener?
  • Next by Date: Re: Info about AudioDeviceAddPropertyListener?
  • Previous by thread: Info about AudioDeviceAddPropertyListener?
  • Next by thread: Re: Info about AudioDeviceAddPropertyListener?
  • Index(es):
    • Date
    • Thread