Logo Search packages:      
Sourcecode: pulseaudio version File versions

double pa_sw_volume_to_linear ( pa_volume_t  v  ) 

Convert a volume to a linear factor. This is only valid for software volumes!

Definition at line 143 of file volume.c.

References PA_VOLUME_MUTED.

                                             {

    if (v == PA_VOLUME_MUTED)
        return 0;

    return pow(10.0, pa_sw_volume_to_dB(v)/20.0);
}


Generated by  Doxygen 1.6.0   Back to index