pub struct AtomicSaturationParams { /* private fields */ }Expand description
Saturation parameters published as complete immutable snapshots.
Implementations§
Source§impl AtomicSaturationParams
impl AtomicSaturationParams
pub fn new() -> Self
Sourcepub fn set_threshold(&self, threshold: f64)
pub fn set_threshold(&self, threshold: f64)
Set threshold (0.0 - 1.0)
Sourcepub fn set_sat_type(&self, sat_type: SaturationTypeValue)
pub fn set_sat_type(&self, sat_type: SaturationTypeValue)
Set saturation type
Sourcepub fn set_input_gain(&self, gain_db: f64)
pub fn set_input_gain(&self, gain_db: f64)
Set input gain (dB)
Sourcepub fn set_output_gain(&self, gain_db: f64)
pub fn set_output_gain(&self, gain_db: f64)
Set output gain (dB)
Sourcepub fn set_highpass_mode(&self, enabled: bool)
pub fn set_highpass_mode(&self, enabled: bool)
Set highpass mode
Sourcepub fn set_highpass_cutoff(&self, hz: f64)
pub fn set_highpass_cutoff(&self, hz: f64)
Set highpass cutoff frequency
pub fn set_enabled(&self, enabled: bool)
Sourcepub fn read(&self) -> SaturationParamsSnapshot
pub fn read(&self) -> SaturationParamsSnapshot
Read all parameters into a snapshot
pub fn load(&self) -> Arc<SaturationParamsSnapshot>
pub fn load_with_generation(&self) -> (Arc<SaturationParamsSnapshot>, u64)
pub fn load_if_changed( &self, cached: &Arc<SaturationParamsSnapshot>, ) -> Option<Arc<SaturationParamsSnapshot>>
pub fn load_if_changed_since( &self, cached_generation: u64, ) -> Option<(Arc<SaturationParamsSnapshot>, u64)>
pub fn is_enabled(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AtomicSaturationParams
impl RefUnwindSafe for AtomicSaturationParams
impl Send for AtomicSaturationParams
impl Sync for AtomicSaturationParams
impl Unpin for AtomicSaturationParams
impl UnsafeUnpin for AtomicSaturationParams
impl UnwindSafe for AtomicSaturationParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more