• 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
what should I understand from kAudioQueueProperty_CurrentLevelMeterDB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: what should I understand from kAudioQueueProperty_CurrentLevelMeterDB
      • From: Kyle Sluder <email@hidden>
    • Re: what should I understand from kAudioQueueProperty_CurrentLevelMeterDB
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: superview
  • Next by Date: Re: what should I understand from kAudioQueueProperty_CurrentLevelMeterDB
  • Previous by thread: Re: superview
  • Next by thread: Re: what should I understand from kAudioQueueProperty_CurrentLevelMeterDB
  • Index(es):
    • Date
    • Thread