• 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: What became of the deprecated functions' channel parameters?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What became of the deprecated functions' channel parameters?


  • Subject: Re: What became of the deprecated functions' channel parameters?
  • From: Kevin Vanwulpen <email@hidden>
  • Date: Fri, 10 Sep 2010 16:02:36 -0700

Hi,

The mElement of the AudioObjectPropertyAddress (combined with scope actually) determines this. Remember
kAudioObjectPropertyElementMaster==0
(0UL in AudioHardware.h)

and channel 1 would require mElement==1 and so forth (so it's 1-indexed , so watch those for loops ;-) )

In fact I would say scopeGlobal and ElementMaster ...what does that mean?
Maybe there is some device out there with some sort of "global" volume control affecting both input and output levels.
I'd need to try it and if you're unlucky it may work on the output (I mean unlucky as I personally hate things working when they are not supposed to more than the other way around).

My 'guess' is you likely want outputscope and ElementMaster (the main-out volume control)
or a per-channel (output scope) level.

It's entirely possibly you're talking about input as well (but am guessing you're not).

Regards,
Kevin

On 9/10/10 3:42 PM, Bob Stuller wrote:
Folks, Greetings!

I'm purging deprecated functions from some Core Audio code & ran across this line:
status = AudioDeviceGetPropertyInfo(device, inChannel, true, kAudioDevicePropertyVolumeScalar, NULL, &isWritable);

As far as I can tell, it gets replaced by:
    Boolean settable;
    AudioObjectPropertyAddress theAddress = { kAudioDevicePropertyVolumeScalar,
kAudioObjectPropertyScopeGlobal,
kAudioObjectPropertyElementMaster };
OSStatus status = AudioObjectIsPropertySettable(device, &theAddress, &settable);

Is there a way to specify which channel I am asking about?  Am I worrying too much?

Thanks in advance for some illumination on this subject.

Peace,
Bob





Sir Isaac Newton secretly admitted to some friends: He understood how gravity behaved, but not how it worked !!
- Lily Tomlin
The Search for Signs of Intelligent Life in the Universe



_______________________________________________ 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

  • Follow-Ups:
    • Re: What became of the deprecated functions' channel parameters?
      • From: Bob Stuller <email@hidden>
References: 
 >What became of the deprecated functions' channel parameters? (From: Bob Stuller <email@hidden>)

  • Prev by Date: What became of the deprecated functions' channel parameters?
  • Next by Date: ExtAudioFileRead -- not reading enough frames
  • Previous by thread: What became of the deprecated functions' channel parameters?
  • Next by thread: Re: What became of the deprecated functions' channel parameters?
  • Index(es):
    • Date
    • Thread