• 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: Audio Unit level metering oniPhone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Audio Unit level metering oniPhone


  • Subject: Re: Audio Unit level metering oniPhone
  • From: William Stewart <email@hidden>
  • Date: Wed, 22 Apr 2009 17:10:11 -0700

Hi Andrew


On Apr 22, 2009, at 1:56 AM, Andrew Nalband wrote:

Hi Bill,

Thanks for the quick response.

Is it correct that I can use:

kMultiChannelMixerParam_PreAveragePower

for level metering?  What range of values will I be reading from it?  0.0 to 1.0?

I followed your advice on checking for an error with this code:

UInt32 meteringMode = 1; 
setupErr = AudioUnitSetProperty(mixerUnit, kAudioUnitProperty_MeteringMode, kAudioUnitScope_Input, 0, &meteringMode, sizeof(meteringMode) );
[self throwIfErr:setupErr withMessage:@"Couldn't turn on metering"];

and I am indeed getting an error:

exception: Couldn't turn on metering (OSStatus: -10879 [Å’ˇˇ])

I don't see how this could return that error - are you sure you are doing this on the mixer audio unit? How did you open this?

Bill

 _______________________________________________
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

  • Follow-Ups:
    • Re: Audio Unit level metering oniPhone
      • From: Andrew Nalband <email@hidden>
References: 
 >Audio Unit level metering oniPhone (From: Andrew Nalband <email@hidden>)
 >Re: Audio Unit level metering oniPhone (From: William Stewart <email@hidden>)
 >Re: Audio Unit level metering oniPhone (From: Andrew Nalband <email@hidden>)

  • Prev by Date: Re: iPhone Audio Woes
  • Next by Date: GrahicEQ AU trouble
  • Previous by thread: Re: Audio Unit level metering oniPhone
  • Next by thread: Re: Audio Unit level metering oniPhone
  • Index(es):
    • Date
    • Thread