what should I understand from kAudioQueueProperty_CurrentLevelMeterDB
what should I understand from kAudioQueueProperty_CurrentLevelMeterDB
- Subject: what should I understand from kAudioQueueProperty_CurrentLevelMeterDB
- From: Niran Bala <email@hidden>
- Date: Sun, 08 May 2011 03:28:16 -0700 (PDT)
Hi,
I am trying to measure dB levels of my voice.
I use the following code.
UInt32 propertySize = format.mChannelsPerFrame * sizeof (AudioQueueLevelMeterState);
AudioQueueGetProperty(
queue,
(AudioQueuePropertyID)kAudioQueueProperty_CurrentLevelMeterDB,
levels,
&propertySize);
The peakpower levels[0].mPeakpower is always negative, and the max value when I shout at the mic is 0.0
How should I interpret this value?
When I mute the Mic on my laptop, this value is -120
When I read many posts, they say I have to add the abs(-120) to the peakpower to get a positive value.
but my voice's decibel can not be 120, as this would cause eardrum rapture?
I am trying to do a Decibel Meter.
please help.
Thanks
Niran
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden