Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATLinearToDBValue
CATFloat32 CATLinearToDBValue ( CATFloat32  linearVal  )  [inline]

CATLinearToDBValue() converts a linear value to a dB value from -inf to +6 for volume sliders and the like. 0dB is at about 0.708142, +6 is at 1.0f.

Parameters:
linearVal - input linear value (0 - 1.0f)
Returns:
CATFloat32 - dbVal (-inf to +6)

Definition at line 27 of file CATMathUtil.h.

Referenced by CATLinearToDBGain(), CATSlider::GetHint(), and CATKnob::GetHint().


Generated on Mon Feb 11 04:10:01 2008 for Game Accessibility Suite by doxygen 1.5.4