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



Title: Re: kStereoMixerParam_PreAveragePower
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


Yes.  The audio is going through the mixer and is put into a ring buffer.  From there it is encoded and saved to a file.  All of the audio comes through mixed as expected.

The mixer is in an AUGraph.  I get the AudioUnit for the mixer node with:

AUGraphGetNodeInfo(mVOGraph, mixerNode, NULL, NULL, NULL, &mixerUnit);

Dominic Feira / Code Monkey / Ambrosia Software, Inc.

On Feb 17, 2005, at 3:05 PM, email@hidden wrote:
Dominic, when you are getting the parameter value are you currently
rendering and
supplying input sample frames which are non-zero?  The parameter value is meant
to give a measurement on the power of the input you're giving to the mixer.

Chris Rogers
Core Audio
Apple Computer
Hello.  I am trying to get kStereoMixerParam_PreAveragePower from a
stereo mixer.
I'm doing the following:


mLeftLevel = 0.0;
error = AudioUnitGetParameter(mixerUnit,
               kStereoMixerParam_PreAveragePower + 0,
          kAudioUnitScope_Input,
          0,
              &mLeftLevel);

Every time this runs I mLeftLevel comes back as -120.0.
AudioUnitGetParameter isn't returning an error.  Any idea?  Perhaps
I don't understand something.

Dominic Feira / Code Monkey / Ambrosia Software, Inc.

_______________________________________________
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/crogers%40apple.com

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.