Property Listener kAudioQueueProperty_CurrentLevelMeterDB
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