pub struct AtomicDynamicLoudnessParams { /* private fields */ }Expand description
Atomic dynamic loudness parameters
Implementations§
Source§impl AtomicDynamicLoudnessParams
impl AtomicDynamicLoudnessParams
pub fn new() -> Self
pub fn set_enabled(&self, enabled: bool)
pub fn set_volume(&self, vol: f64)
Sourcepub fn set_ref_volume_db(&self, db: f64)
pub fn set_ref_volume_db(&self, db: f64)
Set the reference volume in dB and publish the derived linear volume.
Sourcepub fn set_strength(&self, strength: f64)
pub fn set_strength(&self, strength: f64)
Set strength (0.0 - 1.0)
pub fn read(&self) -> DynamicLoudnessParamsSnapshot
pub fn load(&self) -> Arc<DynamicLoudnessParamsSnapshot>
pub fn load_with_generation(&self) -> (Arc<DynamicLoudnessParamsSnapshot>, u64)
pub fn load_if_changed( &self, cached: &Arc<DynamicLoudnessParamsSnapshot>, ) -> Option<Arc<DynamicLoudnessParamsSnapshot>>
pub fn load_if_changed_since( &self, cached_generation: u64, ) -> Option<(Arc<DynamicLoudnessParamsSnapshot>, u64)>
pub fn is_enabled(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AtomicDynamicLoudnessParams
impl RefUnwindSafe for AtomicDynamicLoudnessParams
impl Send for AtomicDynamicLoudnessParams
impl Sync for AtomicDynamicLoudnessParams
impl Unpin for AtomicDynamicLoudnessParams
impl UnsafeUnpin for AtomicDynamicLoudnessParams
impl UnwindSafe for AtomicDynamicLoudnessParams
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