Different representations of a stream volume. gst_stream_volume_convert_volume() allows to convert between the different representations.
Formulas to convert from a linear to a cubic or dB volume are cbrt(val) and 20 * log10 (val).
Cubic volume scale
Logarithmic volume scale (dB, amplitude not power)
Linear scale factor, 1.0 = 100%
Different representations of a stream volume. gst_stream_volume_convert_volume() allows to convert between the different representations.
Formulas to convert from a linear to a cubic or dB volume are cbrt(val) and 20 * log10 (val).