pub struct Agc {
pub blocks: u64,
pub frozen_blocks: u64,
pub last_level_dbfs: f32,
/* private fields */
}Expand description
One gain per block, moved toward the target at the attack or release
rate, applied in f32 with rounding and saturation.
The block level is its RMS in dBFS; the correction is
target − (level + gain), limited to what the rate allows in one block
duration and to the gain range. Because the whole block gets one gain,
blocks should be 10–30 ms.
Fields§
§blocks: u64Blocks processed.
frozen_blocks: u64Blocks whose level was below the noise floor (gain frozen).
last_level_dbfs: f32Level of the last input block in dBFS.
Implementations§
Trait Implementations§
Source§impl Element for Agc
impl Element for Agc
Source§fn output_format(&self, input: PcmFormat) -> Result<PcmFormat>
fn output_format(&self, input: PcmFormat) -> Result<PcmFormat>
The format this element emits for blocks in
input, or
Err(Unsupported) if it cannot take input at all.Auto Trait Implementations§
impl Freeze for Agc
impl RefUnwindSafe for Agc
impl Send for Agc
impl Sync for Agc
impl Unpin for Agc
impl UnsafeUnpin for Agc
impl UnwindSafe for Agc
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