javazoom.jl.decoder.Equalizer.getBandFactor C# (CSharp) Method

getBandFactor() private method

Converts an equalizer band setting to a sample factor. The factor is determined by the function f = 2^n where n is the equalizer band setting in the range [-1.0,1.0].
private getBandFactor ( float eq ) : float
eq float
return float
        internal float getBandFactor(float eq)
        {
            if (eq == BAND_NOT_PRESENT)
                return 0.0f;

            float f = (float) System.Math.Pow(2.0, eq);
            return f;
        }