[][src]Enum gstreamer_audio::StreamVolumeFormat

pub enum StreamVolumeFormat {
    Linear,
    Cubic,
    Db,
    // some variants omitted
}

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

Linear
Cubic
Db

Trait Implementations

impl Clone for StreamVolumeFormat[src]

impl Copy for StreamVolumeFormat[src]

impl Debug for StreamVolumeFormat[src]

impl Eq for StreamVolumeFormat[src]

impl Hash for StreamVolumeFormat[src]

impl Ord for StreamVolumeFormat[src]

impl PartialEq<StreamVolumeFormat> for StreamVolumeFormat[src]

impl PartialOrd<StreamVolumeFormat> for StreamVolumeFormat[src]

impl StructuralEq for StreamVolumeFormat[src]

impl StructuralPartialEq for StreamVolumeFormat[src]

Auto Trait Implementations

impl RefUnwindSafe for StreamVolumeFormat

impl Send for StreamVolumeFormat

impl Sync for StreamVolumeFormat

impl Unpin for StreamVolumeFormat

impl UnwindSafe for StreamVolumeFormat

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.