Re: kStereoMixerParam_PreAveragePower
Re: kStereoMixerParam_PreAveragePower
- Subject: Re: kStereoMixerParam_PreAveragePower
- From: Chris Rogers <email@hidden>
- Date: Fri, 18 Feb 2005 12:20:07 -0800
Dominic,
You need to use input scope (kAudioUnitScope_Input) here.
Chris Rogers
Core Audio
Apple Computer
Hmm...this didn't work for me. Forgive me for having problems with
something so simple.
UInt32 metering = 1;
error = AudioUnitSetProperty(mixerUnit,
kAudioUnitProperty_MeteringMode,
kAudioUnitScope_Global,
0,
&metering,
sizeof(UInt32));
This is definitely done before I start asking for
kStereoMixerParam_PreAveragePower from the mixer audio unit.
Dominic Feira / Code Monkey / Ambrosia Software, Inc.
On Feb 18, 2005, at 4:52 AM, Chris Rogers wrote:
Sorry Dominic, I should have also asked if you're enabling metering.
You need to enable it on the mixerUnit with the
kAudioUnitProperty_MeteringMode property.
A UInt32 value of 1 will turn it on. The reason you need to
explicitly enable it is because
it uses some of the CPU to compute the value (not a huge amount).
That should work better, good luck.
Chris Rogers
Core Audio
Apple Computer
_______________________________________________
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