Re: kStereoMixerParam_PreAveragePower
Re: kStereoMixerParam_PreAveragePower
- Subject: Re: kStereoMixerParam_PreAveragePower
- From: Dominic Feira <email@hidden>
- Date: Fri, 25 Feb 2005 17:41:07 -0500
Sorry for the delayed response.
When I use
kAudioUnitScope_Input as suggested, I get back kAudioUnitErr_InvalidScope. The only scope that doesn't result in an error is kAudioUnitScope_Global.
UInt32 metering = 1;
error = AudioUnitSetProperty(mixerUnit,
kAudioUnitProperty_MeteringMode,
kAudioUnitScope_Input,
0,
&metering,
sizeof(UInt32));
printf("error: %d\n"< error);
On Feb 18, 2005, at 3:20 PM, Chris Rogers wrote:
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