Logo Search packages:      
Sourcecode: pulseaudio version File versions  Download package

double pa_sw_volume_to_linear ( pa_volume_t  v  ) 

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

Since:
0.8

Definition at line 110 of file volume.c.

References PA_VOLUME_MUTED.

                                             {

    if (v == PA_VOLUME_MUTED)
        return 0;

    return pow(10, pa_sw_volume_to_dB(v)/20);
}


Generated by  Doxygen 1.6.0   Back to index