First post, by superfury
I want to convert 0.0-1.0 factors from and to decibel-like factors in the same range(so essentially turning a straight 0-1 line into a dB curve from 0-1 to be better for the human ear. So 0.5 is half as loud as 1.0 when inputted, with the output being in the range of 0.0-1.0).
I already have these two formulas:
//dB vs factor conversions!
#define dB2factor(dB, fMaxLevelDB) pow(10, (((dB) - (fMaxLevelDB)) / 20))
#define factor2dB(factor, fMaxLevelDB) ((fMaxLevelDB) + (20 * log(factor)))
I just want to apply them to convert to and from 0.0-1.0 scale (both logarithmic and linear).
Anyone knows how to do this?
Author of the UniPCemu emulator.
UniPCemu Git repository
UniPCemu for Android, Windows, PSP, Vita and Switch on itch.io