• 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: More AUMixer Metering Questions...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More AUMixer Metering Questions...


  • Subject: Re: More AUMixer Metering Questions...
  • From: William Stewart <email@hidden>
  • Date: Mon, 30 Oct 2006 19:31:41 -0800

I couldn't find a define in our headers for: kStereoMixer_PostAveragePower (its kStereoMixerParam_PostAveragePower)

Metering is per-channel, not per-bus. From AudioUnitParameters.h:

// read-only
//
// For each of the following, use the parameter number for the left channel
// and the parameter number plus one for the right channel.
// For example k3DMixerParam_PostAveragePower is for the left channel
// while k3DMixerParam_PostAveragePower+1 is for the right channel.
kStereoMixerParam_PreAveragePower = 1000,
kStereoMixerParam_PrePeakHoldLevel = 2000,
kStereoMixerParam_PostAveragePower = 3000,
kStereoMixerParam_PostPeakHoldLevel = 4000


(note the 3DMixer param ID's are the same for these cases as the stereo ones, so the comment above does correctly apply)

So - with the call below you are only ever asking for the left channel of inputBusIndex0 - to ask for the right channel, the paramID is (kStereoMixerParam_PostAveragePower+1)

Bill


On 30/10/2006, at 12:04 PM, Mark Coniglio wrote:

Hi All,

I'm using the metering on the AUMixer. I've just discovered that, given a stereo stream coming into the mixer, when there is signal on the left channel and not the right, I the metering works as expected. But when the signal is on the right on not the left, metering does not work.

I am getting the levels with

float power;

::AudioUnitGetParameter(au, kStereoMixer_PostAveragePower, kAudioUnit_ScopeInput, inputBusIndex0, &power);

Similarly, you can simply use the pan input to pan the signal all the way to the right, and then the signal disappears.

I guess this begs another question: can I meter the individual channels of the AUMixer? Or do I need to switch to a MatrixMixer to accomplish this?

Thanks,
Mark
--
=====================================================================
Mark Coniglio, Artistic Co-Director | email@hidden
Troika Ranch Dance Theater          | http://www.troikaranch.org
=====================================================================
_______________________________________________
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

--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __


_______________________________________________
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: More AUMixer Metering Questions...
      • From: Mark Coniglio <email@hidden>
References: 
 >More AUMixer Metering Questions... (From: Mark Coniglio <email@hidden>)

  • Prev by Date: AudioFile API AAC reading on Intel machines
  • Next by Date: Re: AudioFile API AAC reading on Intel machines
  • Previous by thread: More AUMixer Metering Questions...
  • Next by thread: Re: More AUMixer Metering Questions...
  • Index(es):
    • Date
    • Thread