Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kStereoMixerParam_PreAveragePower



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:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

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:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden
References: 
 >Re: kStereoMixerParam_PreAveragePower (From: Dominic Feira <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.