Enumeration (GI Enum)

GstAudio-1.0GstAudioStreamVolumeFormat

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).

Index
CUBIC: 1

Cubic volume scale

DB: 2

Logarithmic volume scale (dB, amplitude not power)

LINEAR: 0

Linear scale factor, 1.0 = 100%