Re: More AUMixer Metering Questions...
Re: More AUMixer Metering Questions...
- Subject: Re: More AUMixer Metering Questions...
- From: Mark Coniglio <email@hidden>
- Date: Tue, 31 Oct 2006 11:47:03 -0400
Thanks for the solution.
But, FWIW, my headers don't seem to contain this comment. I have
installed 10.4.8 and the 1.4.3 SDK -- but I don't seem to have this
info in the header. In fact, I searched all the Frameworks for the
text "the parameter number plus one" and didn't find it.
The AudioUnitParameters.h file is dated 2002.
Am I missing something here?
Best Wishes,
Mark
P.S., it would be nice if all the CoreAudio headers had some kind of
version number in them, which they don't seem to have.
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
__________________________________________________________________________
--
=====================================================================
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