pub struct ConvertOptions {
pub narrowing: Narrowing,
pub quality: Quality,
pub headroom_db: f64,
pub dither_seed: u64,
pub source_sample: Option<SampleFormat>,
}Expand description
The knobs of a conversion. ConvertOptions::default() is what the tests measured.
Fields§
§narrowing: NarrowingApplied wherever bits are dropped (integer narrowing and float to integer).
quality: QualityUsed for sample-rate conversion.
headroom_db: f64Gain in dB (zero or negative) applied after sample-rate conversion to reduce clipping
from overshoot. The default -3.5 dB does not prevent clipping for every signal.
Monitor integer saturation; float output can exceed full scale. 0.0 requests unity.
dither_seed: u64Seed of the dither’s pseudo-random generator: the same seed gives the same output.
source_sample: Option<SampleFormat>The layout of the source samples when it is not the one the request’s bit depth implies (16, 24 packed or 32 integer): 32-bit float, or 24-bit in a 4-byte slot.
Trait Implementations§
Source§impl Clone for ConvertOptions
impl Clone for ConvertOptions
impl Copy for ConvertOptions
Source§impl Debug for ConvertOptions
impl Debug for ConvertOptions
Source§impl Default for ConvertOptions
impl Default for ConvertOptions
Source§impl PartialEq for ConvertOptions
impl PartialEq for ConvertOptions
impl StructuralPartialEq for ConvertOptions
Auto Trait Implementations§
impl Forget for ConvertOptions
impl Freeze for ConvertOptions
impl Move for ConvertOptions
impl RefUnwindSafe for ConvertOptions
impl Send for ConvertOptions
impl Sync for ConvertOptions
impl Unpin for ConvertOptions
impl UnsafeUnpin for ConvertOptions
impl UnwindSafe for ConvertOptions
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