• 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: AudioObjectPropertyAddress confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioObjectPropertyAddress confusion


  • Subject: Re: AudioObjectPropertyAddress confusion
  • From: Alex Weiss <email@hidden>
  • Date: Fri, 27 May 2011 22:18:14 +0200

Thanks Stephen, that works. But my question was more general: so far, I've blindly supplied kAudioObjectPropertyScopeGlobal and kAudioObjectPropertyElementMaster whenever I wanted to get or set a property. I was wondering what exactly the scope and element fields mean, and in which cases I would use different parameters.

Best,

Alex

P.S. Great job on Max, I use it very frequently.

On Fri, May 27, 2011 at 6:58 PM, Stephen F. Booth <email@hidden> wrote:
Hi Alex,

Try this:

AudioObjectPropertyAddress propertyAddress = {
               kAudioDevicePropertyNominalSampleRate,
               kAudioObjectPropertyScopeGlobal,
               kAudioObjectPropertyElementMaster
       };

OSStatus result = AudioObjectSetPropertyData(outputDeviceID,
                                                                                                &propertyAddress,
                                                                                                0,
                                                                                                NULL,
                                                                                                sizeof(deviceSampleRate),
                                                                                                &deviceSampleRate);

Stephen

On Fri, May 27, 2011 at 12:01 PM, Alex Weiss <email@hidden> wrote:
> Hi,
> I'm changing some of my code to use AudioObjectSetPropertyData /
> AudioObjectGetPropertyData. However, I'm still confused about
> AudioObjectPropertyAddress; the meaning of mSelector is clear, but I still
> don't understand the scope and element fields. The documentation lists the
> possible values, but doesn't really explain when or how they are used. For
> example, if I want to change the sampling rate of my device (i.e.
> kAudioDevicePropertyNominalSampleRate), which scope and element am I
> supposed to indicate?
> Thanks,
> Alex
>  _______________________________________________
> 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

References: 
 >AudioObjectPropertyAddress confusion (From: Alex Weiss <email@hidden>)

  • Prev by Date: Re: limiter
  • Next by Date: Determining if a device is an output device (newbie)
  • Previous by thread: AudioObjectPropertyAddress confusion
  • Next by thread: Determining if a device is an output device (newbie)
  • Index(es):
    • Date
    • Thread