GstStreamVolumeFormat

Different representations of a stream volume. gstaudio.stream_volume.StreamVolume.convertVolume 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).

Values

ValueMeaning
Linear0

Linear scale factor, 1.0 = 100%

Cubic1

Cubic volume scale

Db2

Logarithmic volume scale (dB, amplitude not power)