Enum gstreamer_audio::StreamVolumeFormat [−][src]
#[non_exhaustive]
pub enum StreamVolumeFormat {
Linear,
Cubic,
Db,
// some variants omitted
}Expand description
Different representations of a stream volume. StreamVolume::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).
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Linear scale factor, 1.0 = 100%
Cubic volume scale
Logarithmic volume scale (dB, amplitude not power)
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for StreamVolumeFormatimpl Send for StreamVolumeFormatimpl Sync for StreamVolumeFormatimpl Unpin for StreamVolumeFormatimpl UnwindSafe for StreamVolumeFormatBlanket Implementations
Mutably borrows from an owned value. Read more