Struct libpulse_binding::volume::VolumeDB
source ·
[−]pub struct VolumeDB(pub f64);
Expand description
Software volume expressed in decibels (dBs).
Tuple Fields
0: f64
Implementations
Minus Infinity.
This floor value is used / can be used, when using converting between integer software volume and decibel (dB, floating point) software volume.
Trait Implementations
Converts a volume to a decibel value (amplitude, not power).
This is only valid for software volumes!
Converts a decibel value to a volume (amplitude, not power).
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 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 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 VolumeDB
impl UnwindSafe for VolumeDB
Blanket Implementations
Mutably borrows from an owned value. Read more