Re: HAL user-land audio driver
Re: HAL user-land audio driver
- Subject: Re: HAL user-land audio driver
- From: "Kevin Dixon" <email@hidden>
- Date: Wed, 2 Apr 2008 11:23:08 -0400 (EDT)
- Importance: Normal
> You mentioned before that there are routines in Core Audio that can
> provide
> various mappings from scalar value to dB. What are their names? I would
> need
> a mapping that better corresponds to human perception of loudness than
> linear dB mapping does. My own experience tells me that the steps at low
> volume should be larger and the steps at high volume should be smaller.
I've heard tell of these functions as well, but its pretty trivial to
compute these for yourself
for instance, dB to linear:
linearGain = 10^(dbGain / 20)
0 = ~-120 dB, 1 = 0 dB, and also works for increase in gain
Then solving for dbGain, you get
dbGain = 20 * log10(linearGain)
hth,
-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