Struct libpulse_binding::volume::VolumeDB
source · pub struct VolumeDB(pub f64);Expand description
Software volume expressed in decibels (dBs)
Tuple Fields
0: f64Trait Implementations
sourceimpl From<Volume> for VolumeDB
impl From<Volume> for VolumeDB
Convert a volume to a decibel value (amplitude, not power). This is only valid for software volumes!
sourceimpl From<VolumeDB> for Volume
impl From<VolumeDB> for Volume
Convert a decibel value to a volume (amplitude, not power). This is only valid for software volumes!
sourceimpl From<VolumeDB> for VolumeLinear
impl From<VolumeDB> for VolumeLinear
Convert a decibel value (amplitude, not power) to a linear factor. This is only valid for software volumes!
sourceimpl From<VolumeLinear> for VolumeDB
impl From<VolumeLinear> for VolumeDB
Convert a linear factor to a decibel value (amplitude, not power).
0.0 and less is muted while 1.0 is VOLUME_NORM.
This is only valid for software volumes!
sourcefn from(v: VolumeLinear) -> Self
fn from(v: VolumeLinear) -> Self
Converts to this type from the input type.
sourceimpl PartialOrd<VolumeDB> for VolumeDB
impl PartialOrd<VolumeDB> for VolumeDB
sourcefn partial_cmp(&self, other: &VolumeDB) -> Option<Ordering>
fn partial_cmp(&self, other: &VolumeDB) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for VolumeDB
impl StructuralPartialEq for VolumeDB
Auto Trait Implementations
impl RefUnwindSafe for VolumeDB
impl Send for VolumeDB
impl Sync for VolumeDB
impl Unpin for VolumeDB
impl UnwindSafe for VolumeDB
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more