Struct libpulse_binding::volume::VolumeLinear
source ·
[−]pub struct VolumeLinear(pub f64);
Expand description
Software volume expressed as linear factor.
Tuple Fields
0: f64
Implementations
Trait Implementations
Converts a volume to a linear factor.
This is only valid for software volumes!
Converts a decibel value (amplitude, not power) to a linear factor.
This is only valid for software volumes!
Converts a linear factor to a volume.
0.0
and less is muted while 1.0
is Volume::NORMAL
.
This is only valid for software volumes!
Performs the conversion.
Converts a linear factor to a decibel value (amplitude, not power).
0.0
and less is muted while 1.0
is Volume::NORMAL
.
This is only valid for software volumes!
Performs the conversion.
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 VolumeLinear
impl Send for VolumeLinear
impl Sync for VolumeLinear
impl Unpin for VolumeLinear
impl UnwindSafe for VolumeLinear
Blanket Implementations
Mutably borrows from an owned value. Read more