pub struct GainFactor(pub i32);Expand description
Gain scaling factor in 16.16 fixed-point
Represents a linear amplitude multiplier. Use gain_from_db() to convert
from decibels.
Tuple Fields§
§0: i32Implementations§
Source§impl GainFactor
impl GainFactor
Sourcepub const UNITY: GainFactor
pub const UNITY: GainFactor
Unity gain (0 dB, multiplier = 1.0)
Sourcepub const MUTE: GainFactor
pub const MUTE: GainFactor
Mute (negative infinity dB, multiplier = 0.0)
Trait Implementations§
Source§impl Clone for GainFactor
impl Clone for GainFactor
Source§fn clone(&self) -> GainFactor
fn clone(&self) -> GainFactor
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GainFactor
impl Debug for GainFactor
Source§impl PartialEq for GainFactor
impl PartialEq for GainFactor
impl Copy for GainFactor
impl Eq for GainFactor
impl StructuralPartialEq for GainFactor
Auto Trait Implementations§
impl Freeze for GainFactor
impl RefUnwindSafe for GainFactor
impl Send for GainFactor
impl Sync for GainFactor
impl Unpin for GainFactor
impl UnwindSafe for GainFactor
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)