Struct oddio::AdaptOptions
source · pub struct AdaptOptions {
pub tau: f32,
pub max_gain: f32,
pub low: f32,
pub high: f32,
}
Expand description
Configuration for an Adapt
filter, passed to Adapt::new
Fields§
§tau: f32
How smoothly the filter should respond. Smaller values reduce time spent outside the target range, at the cost of lower perceived dynamic range. 0.1 is a good place to start.
max_gain: f32
Maximum linear gain to apply regardless of input signal
low: f32
When the average RMS level is below this, the gain will increase over time, up to at most
max_gain
high: f32
When the average RMS level is above this, the gain will decrease over time
This should usually be set lower than your desired maximum peak output to avoid clipping of transient spikes.
Trait Implementations§
source§impl Clone for AdaptOptions
impl Clone for AdaptOptions
source§fn clone(&self) -> AdaptOptions
fn clone(&self) -> AdaptOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AdaptOptions
impl Debug for AdaptOptions
source§impl Default for AdaptOptions
impl Default for AdaptOptions
impl Copy for AdaptOptions
Auto Trait Implementations§
impl RefUnwindSafe for AdaptOptions
impl Send for AdaptOptions
impl Sync for AdaptOptions
impl Unpin for AdaptOptions
impl UnwindSafe for AdaptOptions
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