• 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
Property Listener kAudioQueueProperty_CurrentLevelMeterDB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Property Listener kAudioQueueProperty_CurrentLevelMeterDB


  • Subject: Property Listener kAudioQueueProperty_CurrentLevelMeterDB
  • From: Amber Star <email@hidden>
  • Date: Wed, 30 Apr 2008 06:12:46 -0400

in the iPhone SDK FAQ it states

How do I indicate recording level?

When you use an audio queue object (from Audio Queue Services, AudioToolbox/AudioQueue.h) for recording, you can query the audio queue object's kAudioQueueProperty_CurrentLevelMeterDB property to obtain the current recording level. The value of this property is an array of AudioQueueLevelMeterState structures, one per channel, as seen in Listing 1.

Listing 1: AudioQueueLevelMeterState structure

typedef struct AudioQueueLevelMeterState {

    Float32 mAveragePower;

    Float32 mPeakPower;

}; AudioQueueLevelMeterState;

I've tried to add a property listener to to the kAudioQueueProperty_CurrentLevelMeterDB property. I enabled LevelMetering on the queue.
My problem is that my callback is never being called during recording. My question is, am I making a wrong assumption that this property will change as input recording level changes during recording?

Thanks in advance for your help.

 _______________________________________________
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: Property Listener kAudioQueueProperty_CurrentLevelMeterDB
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: AU outIsPlaying parameter problems
  • Next by Date: Re: Property Listener kAudioQueueProperty_CurrentLevelMeterDB
  • Previous by thread: Re: Is openal capable to capture audio?
  • Next by thread: Re: Property Listener kAudioQueueProperty_CurrentLevelMeterDB
  • Index(es):
    • Date
    • Thread