• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: kStereoMixerParam_PreAveragePower
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: kStereoMixerParam_PreAveragePower (From: Dominic Feira <email@hidden>)
 >Re: kStereoMixerParam_PreAveragePower (From: Chris Rogers <email@hidden>)

  • Prev by Date: Re: MultitapAU compiling as folder
  • Next by Date: MIDI data in an AIFF file
  • Previous by thread: Re: kStereoMixerParam_PreAveragePower
  • Next by thread: Core audio driver
  • Index(es):
    • Date
    • Thread