convert kAudioSessionProperty_CurrentHardwareOutputVolume to dB value
convert kAudioSessionProperty_CurrentHardwareOutputVolume to dB value
- Subject: convert kAudioSessionProperty_CurrentHardwareOutputVolume to dB value
- From: Kevin Dixon <email@hidden>
- Date: Mon, 16 Jul 2012 17:08:00 -0700
So it seems that kAudioSessionProperty_CurrentHardwareOutputVolume
returns arbitrary volume units instead of linear gain.
For example when i get the value 0.711712, I convert to dB with
20.0f * log10(volume)
returning ~ -2.95 dB.
However when I measure a 0dB FS tone from my headphone output, with
the volume at 0.711712, the observed power is more in the neighborhood
of -16dB
Can anyone clarify this situation? It is imperative that I know the
actual attenuation so my algorithm can react correctly.
Thanks in advance
-Kevin
_______________________________________________
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