pub enum Dither {
None,
Tpdf {
seed: u64,
},
}Expand description
Optional noise at final linear integer PCM quantization.
Variants§
None
Round and clamp without added noise; preserves the existing encoded bytes.
Tpdf
Add triangular noise in (-1, 1) destination LSBs before rounding and clamping.
Each channel has its own deterministic stream, restarted for each export.
Supported for U8/S8/S16/S24/S32 PCM, including FLAC. Float, G.711 and MP3
output reject this option with crate::ErrorCode::InvalidArgument.
Trait Implementations§
impl Copy for Dither
impl Eq for Dither
impl StructuralPartialEq for Dither
Auto Trait Implementations§
impl Freeze for Dither
impl RefUnwindSafe for Dither
impl Send for Dither
impl Sync for Dither
impl Unpin for Dither
impl UnsafeUnpin for Dither
impl UnwindSafe for Dither
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