pub struct MasterLimiter {
pub ceiling_db: f32,
pub lookahead_ms: f32,
pub release_ms: f32,
}Expand description
Settings of the master bus’s limiter, enabled with MixerConfig::limiter.
The output is delayed by lookahead_ms, and the gain at each frame comes from the
loudest frame within that window, so the gain is already down when a peak leaves
the delay: the output never exceeds ceiling_db. The gain drops at once and
recovers exponentially with a time constant of release_ms. A look-ahead of 0
adds no latency and still keeps every sample at or below the ceiling, at the cost
of a sharper attack. Below the ceiling, the signal passes unchanged.
Fields§
§ceiling_db: f32The highest output level, in dBFS, -24..=0. Default -1.
lookahead_ms: f32Delay that lets the gain anticipate peaks, 0..=10 ms. Default 0.
release_ms: f32Time constant of the gain’s recovery, 1..=2000 ms. Default 50, as Audio::limit.
Trait Implementations§
Source§impl Clone for MasterLimiter
impl Clone for MasterLimiter
Source§fn clone(&self) -> MasterLimiter
fn clone(&self) -> MasterLimiter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MasterLimiter
Source§impl Debug for MasterLimiter
impl Debug for MasterLimiter
Source§impl Default for MasterLimiter
impl Default for MasterLimiter
Source§impl PartialEq for MasterLimiter
impl PartialEq for MasterLimiter
impl StructuralPartialEq for MasterLimiter
Auto Trait Implementations§
impl Freeze for MasterLimiter
impl RefUnwindSafe for MasterLimiter
impl Send for MasterLimiter
impl Sync for MasterLimiter
impl Unpin for MasterLimiter
impl UnsafeUnpin for MasterLimiter
impl UnwindSafe for MasterLimiter
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